Hi,
We now have in egl a modern concatenation operator you can use the + or double sign :: and much better than the old VGLib.concatenateWithSeparator function. But unfortunately in the migration from VAG to EGL this is not converted. So for your new programs use one of these operators I always prefer the double :: not to confuse math operation +.
I do not know why your test is displaying zeros on the left, probably your EGL Build Option has some difference with mine. You can attach your EGL Build Option for review.
This is my sample program:
package teste1;
program lab1 type BasicProgram {}
a, b int?;
aNum NUM(9,2);
bCHA char(50);
cSTR string;
tTXT char(50);
function main()
aNUM = 1234.56;
tTXT = "Hello: ";
//* Concate with field type CHAR
bCHA = tTXT;
bCHA = clip(bCHA) :: " " :: aNUM; // you need to use the clip function to remove blank to CHAR fields
sysLib.writeStdout(bCHA);
//* Concate with field type STRING
cSTR = tTXT;
cSTR = cSTR :: " " :: aNUM; // STRING fields ever remove blanks.
sysLib.writeStdout(cSTR);
bCHA = tTXT;
bCHA = VGLib.concatenateWithSeparator(bCHA, aNUM, " ");
sysLib.writeStdout(cSTR);
end
end
Hsieh