Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return value from CreateObjecT('myForm')
Message
From
23/05/2005 08:09:31
 
 
To
22/05/2005 23:25:34
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01016561
Message ID:
01016686
Views:
12
Hi Christian

You're absolutely right. That's why I have decided to drop forever DO FORM .... TO myVar. Instead, I'll use a parameter object all the time -- I even have added a oParameter property and ThisForm.oParameter = tcParObject in my base class. I guess this is a more modern approach anyway.

Thanks.

>Hello,
>
>yes .. it looks a bit akward .. it's not a ideal solution but rather a workaround ...
>
>cant't answer your questions .. i've not designed it like this ..
>
>but i don't see any problem with this approach .. you also gain a bit more flexibility since you can return arrays, more than one value etc ..
>
>i use this class as my parameter object
>
>
>DEFINE CLASS oParameters AS Relation
>
> FUNCTION THIS_Access(lcProperty)
>  IF !PEMSTATUS(THIS,lcProperty,5)
>   THIS.AddProperty(lcProperty)
>  ENDIF
>  RETURN THIS
> ENDFUNC
>
>ENDDEFINE
>
>
>so i don't have to add properties at designtime ..
>
>in certain cases it also helps to keep interfaces clean .., just pass a parameter object and you never have to change the interface, but keep the flexibility of adding as much properties/parameters as you need later on ..
>
>Regards
>Christian
Grigore Dolghin
Class Software.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform