Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AT() command or something like that
Message
De
25/04/2000 15:01:24
 
 
À
25/04/2000 14:30:41
Erin Eby
Mission Critical Software
Gainesville, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00363259
Message ID:
00363284
Vues:
17
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform