Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to update memory variable ?
Message
De
13/06/2002 11:11:19
 
 
À
13/06/2002 10:46:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00667421
Message ID:
00667961
Vues:
21
It sounds like the variable frmmain is out of scope. Try declaring it as public BEFORE you issue the DO FORM... just as a test and see what happens. Also, in your updatemaster.prg, put a 'set step on' and verify you can see frmmain by typing 'frmmain' (without quotes) in the watch window. Also check the _screen.forms array and see if you can see your form there (it may show up there with the actual form name of master though--you can also reference it that way). Otherwise, I'm sorry, but I'm out of suggestions!

Tracy

>Thank you for the samples it works very fine,but the problem still not solved.
>
>My form is a Top level form(frmMain) with three 3 text box bound to memory variables and i created 3 properties also.
>
>i have top level menu in my form.
>
>in my menu, when i click update master, it does do programs\updatemaster
>
>in this updatemaster.prg if i say frmMain.property1=m.value1 i get error message
>Object FRMMAIN not found.
>
>I call the frmmain by DO FORM master name FRMMAIN
>
>txs
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform