Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Auto find
Message
From
02/11/2015 16:19:16
 
 
To
02/11/2015 03:31:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01626820
Message ID:
01626895
Views:
55
>>Is there a way to open a text document and right away place cursor next to a 'keyword'.
>>That is, is there a way to bypass the right click 'find' after the document is open.
>
>c=filetostr("yourfile.txt")
>lnAt=atc("yourkeyword", c)
>
>modify file "yourfile.txt" range lnAt, lnat+len("yourkeyword")

I didn't know there was a RANGE clause to MODIFY FILE - very nice!
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform