Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
AT() command or something like that
Message
From
25/04/2000 15:01:24
 
 
To
25/04/2000 14:30:41
Erin Eby
Mission Critical Software
Gainesville, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00363259
Message ID:
00363284
Views:
18
>Hi! I am searching for a way to locate a specific character within a document. The character is a carriage return, and I need to find the one that is the first one after a specified character set within the whole document. If this makes any sense to anyone, any suggestions???tia. :)

Well there may be better ways, but one way would be to do something like:

nNdx1 = AT( "specified character set", TheWholeDocument )
cSubString = SUBSTR( TheWholeDocument, nNdx )
nNdx2 = AT( CHR(13), cSubString )
nFinalIndex = nNdx1 + nNdx2 - 1

You might need to massage the specifics some and maybe use STRTOFILE() and/or FILETOSTR() but something like this should work.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Previous
Reply
Map
View

Click here to load this message in the networking platform