PalStrAppendWithSeparator

Note: This page includes content based on the F1 documentation for Centura development. It may be partially converted to support APF development, but should be regarded to be of uncertain actuality. It is provided as is. Eventually, it should be replaced by documentation available from within Visual Studio.

SalString PalStrAppendWithSeparator( SalString sBase,
		                  SalString sAppend,
		                  SalString sSeparator )

The PalStrAppendWithSeparator appends one string to another with exactly one occurrence of a separator character between them.

Parameters

Name Description
SalString sBase Base string to append to. This string may or may not end with the separator character.
SalString sAppend String to append to the base. This string may or may not start with the separator character.
SalString sSeparator Character that shall separate the two strings. PalStrAppendWithSeparator guarantees that exactly one separator character is placed between the strings, regardless of whether they begin/end with that character.

Returns

The return value is the appended string.

Example

Set sUrl = PalStrAppendWithSeparator( 'http://www.ifsab.com/', '/home.htm', '/' )
! sUrl is now 'http://www.ifsab.com/home.htm'
C# code
sCRPath = Int.PalStrAppendWithSeparator("http://www.ifsab.com/", "/home.htm", "/" );
//sUrl is now "http://www.ifsab.com/home.htm"