Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Variable scope
Message
From
17/08/1999 23:37:46
 
 
To
17/08/1999 23:28:16
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00254565
Message ID:
00254794
Views:
28
Hi Ed,

>This would be better than public variables, because the accessing syntax would at least have to use the object name to get to the property, and so local variables wouldn't stomp on the globals, but IMHO, it's still bad design.

Probably, thats why I was asking.

>Almost always, in my experience, there is a way to classify and/or group variables like these, and put them in an object where they logically belong. But to be honest, most things like this I put in my application object. But there aren't many. What kinds of things do you propose might justify a generic "variables" object?

I considered a wrapper class for NewObject that would make it possible to return values, because I just don't get how to do it. The only thing I can think of it pass a THIS and have the NewObject fullfill a property on the old form or class, but that only works if your on an object. So I consdered a global variable class or the exact same thing and call it a "oNewObjectReturnValue". Hmm, can you pass the variable by reference to NewObject? I remeber testing it but it was failing on something.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform