Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Coding Standards
Message
From
08/07/1998 14:15:17
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00115272
Message ID:
00115389
Views:
20
George ---

>
>Assume you wanted to write a binary search routine to search an ordered list, for the sake of readability alone, you'd want to use a DO WHILE...ENDDO.
>
>Or you wanted to break a delimited string down into the inidividual elements. Same thing.

So am I missing something::

cString="Hello"
nLenString=LEN(cString)
DIM cChars(nLenString)
FOR i = 1 TO nLenString
cChars(i)=SUBSTR(cString,i,1)
ENDFOR
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform