Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Objects getting clobbered - scope problem?
Message
 
To
12/06/2004 14:05:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00913041
Message ID:
00913054
Views:
18
>Do you pass the object as a parameter, perchance? If you pass it as a parameter, the receiving procedure has access to the object. The receiving procedure can refer to the object by the same name as the calling one, or by a different name, depending on how you defined your parameters.

I believe I passed an object property as a parameter. That must have made the whole object accessible. So do I need to create a variable like so:

Instead of:
lresult = THIS.CheckUser(oObject.UserCode)
do this:
lcUserCode = oObject.UserCode
lresult = THIS.CheckUser(lcUserCode)
And that will allow me to create and destroy an oObject object within CheckUser?

???
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform