cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Developer forum

Convert from string to length

JGoode
Advocate

Hello,

 

is it possible to convert a string to a length?

 

Thanks

ArchiCAD 23

Windows 10
1 ACCEPTED SOLUTION
3 REPLIES 3

Solution
DGSketcher
Champion

In GDL yes. Look up the obviously named SPLIT command. 🙄 To be fair it does a good job, it's just not as immediately obvious as something like "StrToNum" which doesn't exist.

Apple iMac macOS Monterey / AC26UKI (most recent builds)

DGSketcher
Champion

... Unless you were after the length of the word on screen which is STW, or the number of characters which is STRLEN?

Apple iMac macOS Monterey / AC26UKI (most recent builds)

Thank you very much! I was aware of the SPLIT command but didn't know that it achieved what I was after.

ArchiCAD 23

Windows 10

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!