Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select filed from 2 tables
Message
 
À
09/03/2006 09:05:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
01102730
Message ID:
01103320
Vues:
18
>hi all,
>
>any idea ,help
>
>vi myform how i can choice 2 fields from 2 tables via 2 textbox,
>the 2 fields did not have the same name,
>
>i do that as programmer via this code under,
>
>i need to let the user choise the 2 fieled&&2 fields have same type(numaric)
>CLOSE all
>USE bill in 0
>USE contact in 0
>
>replace IN contact ;
>   FOR cc==LOOKUP(bill.cc,cc,bill.cc) AND NOT EOF('bill') ;
>   val with VAL(bill.bill_value)
>
>
>i need to do that via my form as
>
> thisform.text1.value=bill.field&& any table and any field
> thisform.text2.value=contact.field && any table and any field
>
You can use macro substitution. Here's an example:
lcBillFld = ALLTRIM(thisform.text1.value)
lcContactFld = ALLTRIM(thisform.text2.value)

REPLACE &lcContactFld WITH &lcBillFld in Contact
Cheers,
Jamie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform