Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need a find file routine
Message
 
 
À
08/06/2006 20:44:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP1
Network:
Novell 6.x
Database:
Visual FoxPro
Divers
Thread ID:
01125737
Message ID:
01128038
Vues:
23
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform