Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
IIF syntax
Message
De
14/09/2015 14:14:31
Lutz Scheffler (En ligne)
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
14/09/2015 06:48:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01624559
Message ID:
01624596
Vues:
63
>>>>>>Accordingly how would I set this using your syntax to apply only to the LastFile. I know you had cautioned me once before to use Select 0 but that ship has sailed in this case.
>>>>>
>>>>>If you have MyVal columns in both NowFile and LastFile, you would need to make sure you reference the one in LastFile by adding its alias:
>>>>>
>>>>>REPLACE MyVal WITH IIF( LastFile.MyVal < 7, INT( LastFile.MyVal ), LastFile.MyVal ) IN LastFile
>>>>>
>>>>>That should work regardless of which work area is currently selected, and whether it contains an open table or not.
>>>>
>>>>Exception:
>>>>
>>>>The current work area is on EOF and for all I know on BOF. This will stop REPLACE ... IN xxx from working.
>>>
>>>That is not correct. REPLACE ... IN ... was invented to just circumvent the problem.
>>>You are confusing it with the suituation where you use something like
>>>
>>>REPLACE Alias.Field WITH xValue
>>>
>>>If Alias is not the currently alias and the current Alias is on EOF(), the replace would not happen.
>>>
>>>Walter,
>>
>>Arrgh, that's possible.
>>I need to check. (No VFP available right now ...)
>
>Don't bother , he's right. ;)

In most cases I learn better from doing. :)

(+.+)(-.-)(_ _)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform