Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing variables
Message
De
19/02/1997 11:34:24
 
 
À
19/02/1997 10:52:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00021081
Message ID:
00021095
Vues:
34
>how do you pass variables between 2 different forms. The problem I am having is that I have 2 form each with a private data session. I want to assign the current record number to a variable and pass that to the other form. any suggestions. thanks fot the help.

The line of code that calls the second form should look like this

'Do Form Form2 WITH VARIBLE'

Replace 'VARIBLE' with either RecNo() or the ID of the record you want to pass

In the INIT Event of the second form the first line should look like this

Parameters VaribleName

You can then either use a seek/select query or go commands to find the record

Hope this helps
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform