Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Calling a utilty form with a table parameter
Message
De
23/06/2010 15:32:25
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01470340
Message ID:
01470346
Vues:
48
>If you want to call a Form whose purpsoe is solely to give you a larger space to see what is in your notes (Mem field) Edit Box, and you call it like this: DO FORM frmNotes WITH "TableName"
>
>and you go into the form called frmNotes into the INIT procedure, how would you code a reference of the table and the Memo field you want to view in the EditBox?
>
>I did the following, but it isn't working: (The .Notes references the "Notes" field in the table.)
>If the table and the field were referenced as: Hardware.Notes, then how would you reference this generically in the below code?
>

>LPARAMETERS tcTableName
>
>WITH This
> .edtNotes.Value = (tcTableName) + ".Notes"
>ENDWITH

Did you really want to only see the value or allow edit as well? Make the datasession of the form default and it will participate in the data session of the calling form. Then just set the controlsource of the edit box in the init of the form. That will make it both view and edit. Make the editbox readonly if you do not want to permit edits.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform