Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need a find file routine
Message
 
 
To
08/06/2006 20:44:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01125737
Message ID:
01128038
Views:
20
Vince,

It is based on Filer <g> But I'm not sure anymore how to stop the execution...

>Tracy
>I finally had time to go through search routines sent from several responders and found that the third example you sent best suits my needs. I find the routine does generate an error however in the following code:
>
>   loFiler.find(0) && Perform search
>   if m.halt or lastkey()=27 && Escape was pressed
>      exit
>   endif
>
>The error occurs on the EXIT command. It is not valid unless contained within a of repetition structure. Perhaps I am not seeing something in the code I should. My fix is below:
>
>   if m.halt or lastkey()= 27 && Escape was pressed
>      stopSrch = .T.   && added 6/3/06, next 2
>      ***exit  && fails, not in loop
>   endif
>
>I then have code to check the value of stopSrch and respond accordingly
>
>Once again, thanks
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform