Im trying to pass a variable between two forms with a parameter. I want to be able to double click on a field and go to another form with it looking at the same customer number. In my double click event I have
LParameter tncustomernumber
SELECT customertable
DO FORM customerform with tncustomernumber
and in the init of the other for im calling is
LPARAMETER tncustomernumber
SELECT customertable
Do Case
With tncustomernumber.type = O
Do Case
Case tncustomernumber = .t.
LOCATE FOR customertable.customernumber = tncustomernumber
thisform.txtCustomernumber.Value = tncustomernumber
thisform.refresh
EndCase
EndWith
With tncustomernumber.type = L
Do Case
Case !tncustomernumber = .t.
GO RECNO()
thisform.refresh
EndCase
EndWith
EndCase
so that i can call it from another form or on its own. why isnt the parameter passing?
LParameter tncustomernumber
SELECT customertable
DO FORM customerform with tncustomernumber
and in the init of the other for im calling is
LPARAMETER tncustomernumber
SELECT customertable
Do Case
With tncustomernumber.type = O
Do Case
Case tncustomernumber = .t.
LOCATE FOR customertable.customernumber = tncustomernumber
thisform.txtCustomernumber.Value = tncustomernumber
thisform.refresh
EndCase
EndWith
With tncustomernumber.type = L
Do Case
Case !tncustomernumber = .t.
GO RECNO()
thisform.refresh
EndCase
EndWith
EndCase
so that i can call it from another form or on its own. why isnt the parameter passing?