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 14:02:12
 
 
À
20/02/2009 09:32:11
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:
01383153
Vues:
52
>>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.
>>
>
>As the others said, you can replace this with one line of code. However, figured I'd answer the original question.


SPOILSPORT




>My guess is that you're running this code in a form with a grid on it and the grid is stealing focus, so you're not in the right workarea.
>
>As a rule, every single REPLACE command should include the IN clause to indicate what workarea it applies to:
>
>REPLACE Alias.Field WITH Value
>
>is not the same as:
>
>REPLACE Field WITH Value IN Alias
>
>I wrote about this in FoxRockX (second issue, I think) and also in my session notes from last year's Southwest Fox.
>
>Tamar
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform