Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scan not working in EXE but is fine in Debug
Message
De
20/02/2009 03:25:10
 
 
À
20/02/2009 03:21:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01383020
Message ID:
01383025
Vues:
55
>>>I'm trying to update records that have been printed (the cursor "workorders" contains the work orders that have been printed). The records in the main table need to have a flag set so that they do not print again. The following code works perfectly when I'm debugging, however when running as an EXE nothing is updated, and it looks like the scan is not processing anything.
>>>
>>>
>>>	select workorders
>>>	go top
>>>	scan while !eof()
>>>		select WOMaster
>>>		seek workorders.WONumber order tag WONumber
>>>		if found()
>>>			replace WOMaster.WOPrinted with .t.
>>>		endif
>>>		select workorders
>>>	endscan
>>>
>>>
>>>Any observations or suggestions would be appreciated!
>>
>>There is no need of
>>GO TOP
>>an SCAN WHILE NOT EOF()
>>
>>This is enough:
>>
>>select workorders
>>SCAN
>>
>>....
>>ENDSCAN
>>
>>
>>Try this:
>>
>>select workorders
>>SCAN
>>   IF SEEK(workorders.WONumber,"WOMaster","WONumber")
>>      REPLACE WOPrinted with .t. IN WOMaster
>>   ENDIF
>>ENDSCAN
>>
>
>
>Huh, why did I even bother replying... {g}.
>Nothing passes by unanswered, by you, Sergey or Naomi - within 30 seconds of original post! ;0)



ROFL
Thanks God, Naomi is sleeping now :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform