Siebel eScript Language Reference > Siebel eScript Commands > Clib Object String Methods >
Clib.strncat() Method
This method appends a specified number of characters from one string to another string. Syntax
Clib.strncat(destString, sourceString, maxLen)
|
|
destString |
The string to which characters are to be added |
sourceString |
The string from which characters are to be added |
maxLen |
The maximum number of characters to add |
Returns
The string in destString after the characters have been appended. Usage
This method appends up to maxLen characters of sourceString onto the end of destString. Characters following a null byte in sourceString are not copied. The length of destString is the lesser of maxLen and the length of sourceString. Example
This example returns the string "I love to ride hang-gliders ": var string1 = "I love to "; var string2 = "ride hang-gliders and motor scooters."; Clib.strncat(string1, string2, 17); TheApplication().RaiseErrorText(string1);
See Also
Clib.strncpy() Method
|