home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Length_el
-
- PARAMETERS _aarray, _delimit
-
- _delimit = IF((TYPE("_delimit") = "U"), "/", _delimit)
-
- IF PCOUNT() = 0
- RETURN(-1)
- ELSEIF TYPE("_aarray") != "A"
- IF TYPE("_aarray") != "C"
- RETURN(-1)
- ELSE
- * turn the string into an array
- _choices = _aarray
- DECLARE _aarray[Occurence(_delimit, _choices) + 1]
- _uptohere = Occurence(_delimit, _choices) + 1
- FOR _qaz = 1 TO LEN(_aarray)
- _aarray[_qaz] = Parsing(@_choices)
- NEXT
- ENDIF
- ENDIF
-
- * This funntion returns the length of the longest element in the
- * array. Good for formatting purposes
-
- RETURN(IF( (Long_elem(_aarray) < 1) , 0, LEN(_aarray[Long_elem(_aarray)])))
-
- * End of File