Search - User list
Full Version: opdigits inside another function
Root » Technical Discussion » opdigits inside another function
EigenAlex
Hi, is it possible to have an opdigits() inside another expression like
ch(“../xform`opdigits(”.“)`”) ?




Thanks!
ALex
edward
Try this:
ch(strcat(“../xform”, opdigits(“.”)))
stevenong
Usually I use a variable to replace the opdigits() function.

Bring up the ‘Aliases/Variables’ dialog by either the Dialogs menu -> ‘Aliases/Variables’ or type ‘Alt-Shift-a’.

Go to the Variables folder & set foo with a value of ‘opdigits(“.”)’. Please do not include the quotes ( ' ).

Now, retype your expression as such: ch(“../xform$foo”).
EigenAlex
Thank you, Edward, that worked!

Thank you for your suggestion, Steven, I can't believe I didn't even think about the solution like yours. I guess strcat() can get pretty nasty when dealing with a very long expressions.
sl0throp
Props to Steven here…
tamte
you can use plain old + sign

ch(“../xform”+opdigits(“.”)+“/tx”)
Ratmann
Blast from the past!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB