Page 2 of 2

Re: Next Lemur Update??

Posted: 26 Jun 2012 17:17
by joebataz
OK, that would make sense.

Would this work then?

setattribute(A_CurrTime,'content',arraytostring(A_SeqTime[A_CurFrame]));

Or would I have to use my own conversion that I use with my keyboard page?

Thanks,

joeb

Re: Next Lemur Update??

Posted: 27 Jun 2012 07:53
by axel_liine
arraytostring will convert an array of ASCII values to a string, so here you'd have to first decompose your integer variable to such an array ('0' is 48, '9' is 57). It's a bit tedious but is the only solution until we add more string-related functions in the script engine.

Re: Next Lemur Update??

Posted: 27 Jun 2012 16:25
by joebataz
That's what my keyboard scripts do so I already have the code to do it. But the monitor solution works well and I will keep it the way it is.

Thanks for the help

joeb

BTW
Anyone who wants my code just download the LDJ template and look for convertAsc and convertDec. The first one will take a single ASCII character and convert it to the standard decimal value and the second does the reverse. At the very least it will save you having to look up the ASCII/decimal values.

jb