Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search in a text file
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01520080
Message ID:
01520085
Vues:
50
>Hi everybody,
>
>If I have a text file (a program) and want to search for 'VFP2SQL', but not for '.VFP2SQL' (e.g. I want to find occurrences where there is no . before that string), that can I do?
>
>Thanks in advance.

untested
x=0
DO WHILE .T.
	x=x+1
	y=ATC("VFP2SQL",lcText,x)
	DO CASE
	CASE y=0
		EXIT
	CASE y>0 AND SUBSTR(lcText,y-1,1)<>"."
			** is good
	ENDCASE
ENDDO
Brandon Harker
Sebae Data Solutions
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform