Information générale
Catégorie:
Gestionnaire d'écran & Écrans
After I put the code in the unload I still had problems.
I had to change to put the value in a variable via the control
"click" method then return the variable. I assume the control
was already destroyed by the time the unload fired. Also I have
to refer to the calendar control value as thisform.oleCalendar.object.value
instead of thisform.oleCalendar.value. Why is that?
>>Using VFP5...
>>
>>&& on form main (parent form)...
>>
>>textbox.rightclick -
>> do form calendar to this.value
>>--------------------------------
>>
>>&& on child form calendar (modal form)
>>
>>cmdSelect.click -
>> thisform.release
>> return thisform.oleCalendar.value (MS calendar control)
>>
>>All I get is T returned. What am I doing wrong?
>
>You have to use Unload event return statement to return value from modal form. You can save return value to the form's property in cmdSelect.click and use later in Unload.
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement