Hi,
sometimes I need to fill in a string with a character to achieve a concrete length of this string. So I've written a simple subroutine, which is working for me for a quite long time. Now I found a problem when I use optimized compilation. You can see it on attached example.
Try to write for example number 1 to Input textbox and click on OK button. On the Result textbox should appear 00001 (subroutine fills it in 5 character length).
From IDE and from non optimized compilation it works. But if I use optimized compilation in the Result textbox is 001. Strange.
Has anybody some idea, please ?
Petr
sometimes I need to fill in a string with a character to achieve a concrete length of this string. So I've written a simple subroutine, which is working for me for a quite long time. Now I found a problem when I use optimized compilation. You can see it on attached example.
Try to write for example number 1 to Input textbox and click on OK button. On the Result textbox should appear 00001 (subroutine fills it in 5 character length).
From IDE and from non optimized compilation it works. But if I use optimized compilation in the Result textbox is 001. Strange.
Has anybody some idea, please ?
Petr