Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Vfp50 - Refresh
Message
De
27/02/1997 11:53:16
 
 
À
27/02/1997 11:45:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00022127
Message ID:
00022236
Vues:
42
>>>> How do you refresh a single form from within another
>>>> single form.
>>>
>>>tou have to know how to reference your second and this really depends on how you
>>>initially instantiated them
>>>e.g. I ususally instantiate a related form in a property of the main form so I just do
>>>thisform.oForm.refresh()
>>>in your case it may be different
>>>
>>>Arnon
>>
>>Hi Arnon...
>>Thanks for your answer...
>>Could you explain more and maybe give me an example?
>>
>>Say I have a main form and a bunch of little forms that I use with the
>>main form. I am not using a formset...
>>
>>Thanks -
>>Rob
>
>What I do is when instatianting a form I use DO FORM ... NAME oMyForm
>where oMyForm is a Public (although I know this is not correct) so all I have to do is:
>If Type('oMyForm') = 'O' And ! IsNull(oMyForm)
>DO FORM ... NAME oMyForm
>Else
>oMyForm.Refresh()
>EndIf
>
>Again, this works but it's not the OOP way!

Another not the OOP way:
if not wexist("frmFile")
thisformset.addobject("frmFile","frmFile")
endif
thisformset.frmFile.show()
Edward Pikman
Independent Consultant
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform