General information
Category:
Forms & Form designer
> I have a report form object that I used to put in a form and call my form
> to show the object.
>
> The code was like this
>
> DO FORM UREPORT WITH This.cCriteria,lcName
>
> Now, I don't want to get rid of the form UREPORT and call the object
> directly like this
>
> This.oReport=CREATEOBJECT('CRITERE')
> This.oReport.Show()
>
> But, the Load() event of the report form object is telling me that the DE
> does not exist. Yes, this is normal. This is the first time I am doing this
> non visual. Can someone tell me how to add a DE to the form object or do I
> really need to put the form object in a form and do the form as before?
well, this is realy easy
just add a proerty to you form class oDE
and instantiate a DE in you load event, assign it to the oDE property (so it will be in
scope when the form is in scope)
c'est tout <s>
Arnon
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