PROCEDURE x:
define variable a as character no-undo.
define variable b as character no-undo.
if a = b then
END PROCEDURE.
This will be accepted by the compiler, where as we (as in the programmers at our company) say it should be an error. Progress says: "undocumented feature".
FORMAT "x(50)" is just shorthand of saying FORMAT "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" (ie. x 50 times)
When you say FORMAT "x (50)", you're saying you only want one x, ie. one character, so the '12345' gets truncated to the first character, which is '1'. And then you're saying you want to display ' (50)' after it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.