Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Objects getting clobbered - scope problem?
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Objects getting clobbered - scope problem?
Miscellaneous
Thread ID:
00913041
Message ID:
00913041
Views:
49
I have an application which creates an object (SCATTER NAME) which then calls a function which happens to create an object by the same name. The function destroys the object before returning.

I was expecting that by defining the object as LOCAL or PRIVATE within the function, it would not clobber the identically named object in the calling function. I appear to be wrong because the object in the calling program is getting clobbered by the one in the function.

Either I'm not understanding how to properly scope the object in the calling and called function, or objects behave differently than other variables.

Can someone shed light?

TIA
Kogo Michael Hogan

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

Ideate Web Site
Next
Reply
Map
View

Click here to load this message in the networking platform