VS:Len: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
No edit summary |
||
Line 29: | Line 29: | ||
</lineList> | </lineList> | ||
</params> | </params> | ||
----------------------------------------------------------------------------------------------------------- | |||
<remark> | |||
<b>Vectorworks 2018</b>: This function will behave differently when used during dialog creation. | |||
:When used between [[VS:CreateLayout]], [[VS:CreateResizableLayout]] and [[VS:RunLayoutDialog]] and [[VS:RunLayoutDialogN]] it will return the length of a string in bytes count, mimicking dialog units. | |||
:This means that the number might not be what you expect during the creation of the layout. In this case where this is a problem, you can use it outside the creation and move the value via a variable. | |||
:This was needed to solve alignment issues with Japanese and Unicode in Vectorworks 2018. | |||
</remark> | |||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
Latest revision as of 20:40, 27 November 2017
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
Description
Function Len returns the length of the specified string value.
FUNCTION Len(
v :DYNARRAY[] of CHAR) : INTEGER;
def vs.Len(v): return INTEGER
Parameters
v DYNARRAY[] of CHAR Source string.
Remarks
Vectorworks 2018: This function will behave differently when used during dialog creation.
- When used between VS:CreateLayout, VS:CreateResizableLayout and VS:RunLayoutDialog and VS:RunLayoutDialogN it will return the length of a string in bytes count, mimicking dialog units.
- This means that the number might not be what you expect during the creation of the layout. In this case where this is a problem, you can use it outside the creation and move the value via a variable.
- This was needed to solve alignment issues with Japanese and Unicode in Vectorworks 2018.
Version
Availability: from All Versions