Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return value not being set

Status
Not open for further replies.

mpgalvin

Programmer
Feb 5, 2001
119
IE
I'm calling a modal form, and hoping to capture a value that is being returned by it.

So, I call it by

do form frm1 with a,b to c

and in the form_destroy event of form frm1, I

return d

I've checked the value of d at that point, and it's correct, but when control returns to the calling form, I assume it should put the value into c. Unfortunately c is set to .T. for some reason. I'm initiating c above the do.. function and it makes no difference.

I just know it's something dumb I'm doing.
 
Oops, never mind. I had the RETURN statement in the wrong event, Destroy rather than Unload. This is really annoying me - the amount of times I've put PARAMETERS statements into the Load event, and then not been able to use the variables...

Anyway, it's solved :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top