set(remainSecond, 2);
calc(padleft(remainSecond, 2, '0'));
showlog();
trace(remainSecond);
expect results: 02
real results: 2
set(remainSecond, 2);
calc(padleft(remainSecond, 2, '0'));
showlog();
trace(remainSecond);
expect results: 02
real results: 2
you're not storing the result of the calc function
calc(remainSecond, padleft(remainSecond, 2, '0'));
you're not storing the result of the calc function
calc(remainSecond, padleft(remainSecond, 2, '0'));
Thanks, but the result is not right
ok, yes this is weird..... maybe klaus can shed some light on this....
below some tests with a workaround (last one)
Hi,
right, there is unfortunately a bug there...
The 2 and '0' were internally processed as Numbers in this case.
This will be fixed in the next release.
Here a workaround by using string() to force using them as Strings:
Best regards,
Klaus
thanks the reply, greak work!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!