"Transform" function
Posted: Fri Apr 07, 2023 7:51 am
Hi all,
Found in the old VO code (written before me), which is now ported to X#, the use of the "Transform" function with the character "S" and length. In VO, it is used as a string limit to the specified length.
For example:
But in the documentation for this function, I did not find any mention of either the "S" character or the length. I noticed this when I discovered an inconsistency in the behavior of this function in X# and VO when a length is specified.
For example:
In VO this expression returns 8, and in X# it returns 100. It seems that X# does not take into account the length specified after the "S" character.
Is there any complete documentation on the "Transform" function?
Best regards,
Leonid
Found in the old VO code (written before me), which is now ported to X#, the use of the "Transform" function with the character "S" and length. In VO, it is used as a string limit to the specified length.
For example:
Code: Select all
Transform(<StringValue>, "@S8") // transform to 8 character string
For example:
Code: Select all
SLen(Transform(Space(100), "@S8"))
Is there any complete documentation on the "Transform" function?
Best regards,
Leonid