Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to return values from a form object?
Message
De
22/06/2002 20:03:44
 
 
À
22/06/2002 19:51:46
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00671287
Message ID:
00671432
Vues:
17
TextBox::DoubleClick
ldSelected = {}
* Calendarform is a Modal form
do form Calendarform to ldSelected
* in the Unload event of the Calendarform return the selected value
this.SelectedDate = ldSelected
>Thanks for you answer, but unfortunately I don't how to apply it.
>First, where should your put your code?
>What I'm trying to do is this: in the dobleclick event of a textbox
>I create a form object that has a calendar object in it. Once the
>user picks a date he hit the 'ok' buttton to create a date From the calendar
>properties, then I return this value to the textbox in order to establish
>the new value for the control
>Thanks again
>
>
>
>
>
>>>Hi
>>>I got this code:
>>>
>>>THIS.oCalendar=CREATEOBJECT("frcalendar.frcalendar")
>>>THIS.oCalendar.SHOW
>>>
>>>Once this.oCalendar is released, how can I return a value
>>>from the unload event to a variable or propertie of the
>>>object that created this.ocalendar or what I'm trying to achieve
>>>is only possible with DO FORM?
>>>
>>>
>>>Thanks in advance
>>
>>this.MyRetVal = this.oCalendar.value
>>this.oCalendar.release()
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform