Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Conditional scan, using if
Message
De
15/02/2014 05:47:00
 
 
À
15/02/2014 05:20:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
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:
01594372
Message ID:
01594381
Vues:
75
Sir, Scanning like the code you have suggested and the code I gave below makes the difference in Speed or performance.
Select mytable
if empty (variable1)
scan for field2 = variable2
Endscan
Else
scan for field1 = variable1
Endscan
Endif
I am asking this just for my knowledge, if yes I will also make changes in my all of codes accordingly.
Regards




>
select mytable
>
>scan for iif(empty(variable1), field2 = variable2, field1 = variable1)
>    * Code here
>endscan
>
Harsh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform