General information
Category:
Forms & Form designer
Hi Marsha -
Thanks for your response. Sorry for the typo. I meant to say:
loForm = NEWOBJECT( "DateEntry", "C:\Developement\Myforms.vcx" )
Is there a reason why I would want to instantiate a form class rather than an SCX or the other way around? Is there more overhead involved using DO FORM rather than NEWOBJECT() ?
>loForm = NEWOBJECT( "DateEntry", "C:\Developement\Myforms.scx" )
>
>You cannot do this. It will give you an error that says "Myforms.scx is not an object file". The only way you can instantiate a form as SCX is by using the DO FORM command.
>
>loForm.Visibile = .t.
>
>If you are instantiated a form class (form as VCX), you should callthe form's Show() method rather than setting its visible property to true.
>
>In what scenarios would I choose one method of the other.
>
>You must use NewObject() or CreateObject() to instantiate a form class.
>
>You must use DO FORM to instantiate a form as SCX.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only