Page 1 of 1

Strings as Expressions?

Posted: 27 Jan 2012 16:19
by brianc
I'm trying to save a description as a variable. To do this, I'm using the "Create Expression" button, naming it "description", and trying to set the value to "Reverb". It seems expressions can only be set to numbers or numeric return values from functions.

Is there any way to store a string? I'm trying to use it to concatenate that string to a message in a Text object, e.g. "Changing Value for Reverb", where "Reverb" is whatever I set the value to be.

Re: Strings as Expressions?

Posted: 27 Jan 2012 16:35
by axel_liine
You can set it to 'Reverb' (single quotes instead of double).
Note that there are no concatenation functions at the moment, so you'll have to use two Text objects.

Re: Strings as Expressions?

Posted: 27 Jan 2012 17:43
by brianc
Thanks Axel!

Added strcat() and sprintf() like functions to the wishlist... :)
http://liine.net/forum/viewtopic.php?f=28&t=961