Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp50 - Refresh
Message
From
27/02/1997 11:53:16
 
 
To
27/02/1997 11:45:47
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00022127
Message ID:
00022236
Views:
46
>>>> 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
Previous
Reply
Map
View

Click here to load this message in the networking platform