PosInListPartial

Prev Next Home Home Table Of Contents Index

PosInListPartial (String,Array) : Number

PosInListPartial is similar to the PosInList command. It searches a string array for a matching string and returns the line number of the first match. Unlike PosInList which compares the whole string, PosInListPartial will find the first string that contains the search string.


Example:
var List List[1] = 'Date=09-20-93' List[2] = 'Time=10:18' List[3] = 'Name=Marc' Writeln PosInListPartial('Name=',List) ; returns 3

You can also pass two numbers to PosInListPartial which define the start and end positions in the list to search.


Example:
Writeln PosInListPartial('Name=',List,2,3) ;returns 3

See Also: PosInList PosInListLeft PosInSortedList

Category: String Array

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home