Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BINDEVENT and Parameters
Message
De
23/06/2005 08:49:43
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01025777
Message ID:
01025797
Vues:
16
>>I was wondering if anyone knew how to pass user defined parameters to a bind event.
>>
>>The following line of code is used to bind a command button in a grid to the method CreateInvoice in the form. The problem is I also need to pass two addtional parameters tnInvoice_No and tdInvoice_Date.
>>
>>=BINDEVENT(.cmdInvoice,"Click",Thisform,"CreateInvoice")
>
>How you pass these two parameters to Click Event of the Button?
>May be you don't need BINDEVENT at all, Just call CreateInvoice from Click Event of the Button:
>
>
>*** Button Click
>thisform.CreateInvoice(tnInvoice_No, tdInvoice_Date)
>
>*** Somewhere else you want to create an invoice
>thisform.CreateInvoice(tnInvoice_No, tdInvoice_Date)
>
The problem is that the command button is added to the grid using
.AddObject("cmdInvoice","CommandButton")
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform