Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Search in a text file
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01520080
Message ID:
01520085
Views:
51
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform