View Single Post
  #1 (permalink)  
Old 01-31-2008, 03:42 PM
petrbury petrbury is offline
Junior Member
 
Join Date: May 2007
Posts: 46
Default Strange subroutine output

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
Attached Files
File Type: sbp Tst.sbp (897 Bytes, 4 views)
Reply With Quote