Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need opinion/advice about instantiating forms
Message
From
21/11/2005 09:03:57
 
 
To
20/11/2005 08:57:56
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01070570
Message ID:
01070725
Views:
25
>>I'm having trouble understanding when it would be better to instantiate a form using the NEWOBJECT function (assuming the form has been subclassed) rather than DO FORM, or visa versa.
>>
>>If I create a data entry form that's been saved to a .scx file, and the same form has also been subclassed, what are the benefits/downsides of calling the form using DO DataEntry.scx rather than
>>loForm = NEWOBJECT( "DateEntry", "C:\Developement\Myforms.scx" )
>>loForm.Visibile = .t.
>>
>>In what scenarios would I choose one method of the other.
>>
>>Thanks ahead of time for the advice.
>
>- vcx have not the dataenvironment
>- vcx allocate a class template on memory
>- vcx properties are evaluated the first time only,
>until you execute a
>CLEAR CLASS DateEntry
>or
>CLEAR CLASSLIB C:\Developement\Myforms.VCX
>- the memberclass work in different way
>....
>
>I use VCX only, SCX it has too many bugs and problems.

Well, I mainly use SCX and can't remember the last time it gave a bug or problem. So, Frank, don't bother too much about that statement of Fabio. He's the master in discovering - or creating? - bugs. :)
Groet,
Peter de Valença

Constructive frustration is the breeding ground of genius.
If there’s no willingness to moderate for the sake of good debate, then I have no willingness to debate at all.
Let's develop superb standards that will end the holy wars.
"There are three types of people: Alphas and Betas", said the beta decisively.
If you find this message rude or offensive or stupid, please take a step away from the keyboard and try to think calmly about an eventual a possible alternative explanation of my message.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform