Assignment a string from a list of strings

Hello,

Is it possible to assign a string from a list of strings to a variable?

I read the following discussion https://forum.sofistik.de/t/list-of-strings/1090 and tried the script below but with no success. Any ideas are welcome.

+PROG TEMPLATE urs:1
LET#TEXT 'ABCDEF','LMNOPR'
LET#OUT(0:8) #TEXT(0) $$ ASSIGNMENT ERROR
END

No, not really.

Once you define a string literal in a variable it stays there :wink:
You can however manipulate “output”.
Printing: Txb Text(2:3)
Or “input” in sofistik commands: Lc ... Title "Loadcase nr #var(1)"

But there’s a lot of trial and error.
Use dbg#2 to understand what you store, e.g.:

+PROG TEMPLATE
DBG#2
LET#TEXT 'ABCDEF','LMNOPR'
TXB #TEXT(2:4) 
END