Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Unknown member
Message
De
20/03/2006 10:18:50
 
 
À
20/03/2006 07:05:01
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
01105751
Message ID:
01105845
Vues:
23
>CLOSE all
> lcTable1 = alltrim(thisform.text5.value)
> lcTable2 = alltrim(thisform.text6.value)
> lcBillValue = lcTable1. bill_value&&"lcTable1" is not an object
>
> Use ( lcTable1) in 0
> Use ( lcTable2) in 0
>
> lcField = alltrim(thisform.text1.value)
>
>replace IN lcTable2 ;&& Too few arguments
> FOR EVAL(lcField)==LookUp(lcTable1.&lcfield), EVAL(lcField), (lcTable1.&lcfield)) AND NOT EOF('lcTable1');
>NEWVALUE with VAL(lcBillValue)


When using variables in the above example, you must use macro substitution:
CLOSE all
lcTable1 = alltrim(thisform.text5.value)
lcTable2 = alltrim(thisform.text6.value) 
lcBillValue = &lcTable1..bill_value       && Note you must use double periods here

Use ( lcTable1) in 0
Use ( lcTable2) in 0

lcField = alltrim(thisform.text1.value)

replace IN  &lcTable2..somefield ;        && Note the macro and double periods
   FOR EVAL(lcField)==LookUp(lcTable1.&lcfield), EVAL(lcField), (lcTable1.&lcfield)) AND NOT EOF('lcTable1');
NEWVALUE with VAL(lcBillValue)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform