Information générale
Titre:
Need Help! Method call
Hi all,
I am stumped and really need some help!
My application's main form calls a second (modal) form.
In that second form I call a method back in the first
form that returns a unique primary key value.
Here's the line (in 2nd form) that calls the method in the first form:
lcNewPrimKey = .oParams.oCallingForm.GetNewKey()
I can set step on and watch the GetNewKey() method execute just fine.
It generates the expected (type char) return value and assign it to
the return variable. The debugger displays the value correctly, i.e.
"00001234".
The method's last line returns the value:
return lcRetVal
Stepping out of this line (and back into the second form) things
get weird. The value assigned to lcNewPrimKey by GetNewKey() is
now .NULL.
The results are the same if I hard code the return value in
GetNewKey() to be:
return "00001234"
The variable lcNewPrimKey is still assigned .NULL.
What am I missing? Neither my Manager nor I can figure it out.
Can anyone explain what's happening? Thanks!
BTW, I'm running VFP 6, SP3 on Windows 2000 (no SP)
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement