General information
Category:
Forms & Form designer
I think Barbara makes a good point here by demonstrating that a form is basically a data structure that also has GUI visibility. You can pass form references to other forms (like pointers), store them, and create your own walkable hierarchy of interconnected forms in your app, where an event in one form can thus be programmatically trickled/propagated through other forms at will.
>Rodney,
>The simplest way is to pass the calling form as an object to the modal form. Then you store the data back to the calling form.
>
>1. Do NewForm with thisform && Sends the form object to the modal form (NewForm)
>
>2. In the NewForm Init(), get the parameter and store it to a form property:
>Init()
>lparameter oCallingForm
>this.OForm = ocallingForm (OForm is a form property you add)
>
>3. In the Exit button
>This.OForm.TextToUpdate.value = Thisform.NewTextEntered.value
>thisform.release()
>
>HTH
>Barbara
>
>>Hi Alex,
>>
>>Thanks for responding.
>>
>>I guess that's the trick I need...what code would I use to return the text typed in - say for instance to put the text in a textbox on the main form?
>>
>>(The reason I like this is that it forces the user to enter the ID number first, that way it's not so messy and the record he's working on is secure)
>>
>>Rodney
Previous
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