4D v13.4Substring |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v13.4
Substring
Substring
The Substring command returns the portion of source defined by firstChar and numChars. The firstChar parameter points to the first character in the string to return, and numChars specifies how many characters to return. If firstChar plus numChars is greater than the number of characters in the string, or if numChars is not specified, Substring returns the last character(s) in the string, starting with the character specified by firstChar. If firstChar is greater than the number of characters in the string, Substring returns an empty string (""). This example illustrates the use of Substring. The results, described in the comments, are assigned to the variable vsResult. vsResult:=Substring("08/04/62";4;2) ` vsResult gets "04" The following project method appends the paragraphs found in the text (passed as first parameter) to a string or text array (the pointer of which is passed as second parameter): ` EXTRACT PARAGRAPHS |
PROPERTIES
Product: 4D
INDEX HISTORY
Created: < 4D v6 SEE ALSO |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||