MAX_STR_LENGTH Function
Syntax
Max_Length as N = max_str_length(C string ,C delimiter )
Arguments
- string
A string containing multiple separated values or words. Character
- delimiter
The separator between the values or words. Character
Description
Returns the length of the longest string in a list of strings
Discussion
The MAX_STR_LENGTH() function returns the length of the longest sub string in the string.
Example
? MAX_STR_LENGTH("a ab abc", " ")
= 3.000000This example shows how to figure out the maximum number of characters entered for a specific field for an entire table.
dim clist as C
dim maxlen as N
clist = table.external_record_content_get("table_name","field_name")
maxlen = max_str_length(clist, chr(13)+chr(10))See Also