SubString strange behavior.

LAHAYE Olivier olivier.lahaye at cea.fr
Tue May 16 17:51:43 UTC 2017


Still need help :-/

fun display_step(text) {
   // text format: 4 letters (step):progress_val(3 digits):max(3 digits)
   step = text.SubString(0,4); // step name (4 chars)
   str_a = text.SubString(5,3);
   str_b = text.SubString(9,3);
   MyPrint("step=" + step + " str_a=" + str_a + " str_b=" + str_b + ".");
}

display_step("post:003:007"); // Will display: step=post str_a=#NULL str_b=#NULL.
// It should display step=post str_a=003 str_b=007.

What I'm doing wrong?!?!?

--
   Olivier LAHAYE
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/plymouth/attachments/20170516/f5cb5e01/attachment.html>


More information about the plymouth mailing list