Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems in using the function EVALUATE()
Message
De
15/09/2017 03:51:10
Reza Meamar
Homa Programming Group
Shiraz, Iran
 
 
À
15/09/2017 01:14:08
Reza Meamar
Homa Programming Group
Shiraz, Iran
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP3
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01654324
Message ID:
01654345
Vues:
53
He update the code as below:


A more robust solution:
STORE EVALUATE(MAX(ALLTRIM(EVALUATE("m.HMF" + PADL(ALLTRIM(STR(nCounter)),2,"0"))), " 0")) TO nValue
It can safely handle formulas like these, that the first version couldn't:

HMF01 = "(m.KHour * 1100000) / 110 "
HMF02 = " 110000"
HMF03 = ""
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform