Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters to forms from a toolbar
Message
De
21/07/2000 14:12:05
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Passing parameters to forms from a toolbar
Divers
Thread ID:
00395604
Message ID:
00395604
Vues:
34
I am trying to pass a parameter to a add/edit form to let the form know if its being open to add a new record or to edit an existing record. I use the following code in a commandgroup and it works okay. If I use the same code in a clickbutton event on a toolbar it doesn't see the variable that tells it if its a new record.

Any suggests?
***************************************************
Calling Command button click event:

public pfomodify
do form forms\frmmodify1 with .f. name pfomodify linked

The same commands are given for the buttonclick event of the toolbar.

Any reason for me to expect them to act differently?

***************************************************
The init method of the called form:

lparameters llNew

set console off

select recmstr
if isadd
lnNextReceipt_noID = recnum.receipt_id
insert into recmstr (depositnum, receipt_no, clerk, date_recvd) ;
values (depno.depositnum, recnum.rec_number, nclerk, zdate)
else
lnNextReceipt_noID = 0
endif

***************************************************
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform