Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Proper way to stop New() execution
Message
From
30/10/2006 16:09:37
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
To
30/10/2006 15:34:44
General information
Forum:
ASP.NET
Category:
Class design
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01165405
Message ID:
01165606
Views:
16
yup looks like we had a comunication failure ;)
I thought you wanted to prevent the object from being created that's why u wanted to exit new() excution, if u junt want to exit new not executing any more code that's bellow you can use Exit Sub, this is the equivalent to have a return in VFP.

>After reading your message again, I think I understand what you are proposing. Unfortunately, in our case, this has to be controlled within the class and the object. So, we cannot rely on the caller for such procedure. So, I think the way I did it is the proper way to achieve that in that particular case. Basically, I created a property lStop. If the object set it to True, once the generator method will be called, the class will act accordingly if lStop is True.
Alexandre Palma
Senior Application Architect
Previous
Reply
Map
View

Click here to load this message in the networking platform