vgLib.concatenateWithSeparator() is one of a number of functions maintained for compatibility with earlier versions. New code should use standard EGL operators for these purposes.
vgLib.concatenateWithSeparator(
target CHAR | DBCHAR | MBCHAR | UNICODE | STRING | HEX inOut,
source CHAR | DBCHAR | MBCHAR | UNICODE | STRING | HEX in,
separator CHAR | DBCHAR | MBCHAR | UNICODE | STRING | HEX in)
returns (result INT)
The following example illustrates the use of the vgLib.concatenateWithSeparator() function:
phrase, ormeme CHAR(7);
result INT;
phrase = "and";
ormeme = "or";
result = vgLib.concatenateWithSeparator(phrase,ormeme,"/");
if (result == 0)
SysLib.writeStdout("***"+phrase+"***"); // phrase = "and/or "
end