Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
_screen
Message
From
14/10/1997 10:49:12
 
 
To
11/10/1997 13:21:56
Sonny Chouinard
CHCA Computer Systems Inc.
Lachenaie, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00054154
Message ID:
00054452
Views:
38
>>>>How can I reference a form from another ?
>>>>I have to refresh a form on the screen when I move from a record to another in a grid in another form.
>>>>I tried with :
>>>> _screen.refresh but it doesn't work
>>>I also tried with activate windows(windowname) putting in the form's activate event a call to the refresh but it's even worse
>>>what else can I do ?
>>>Thanks to all
>>>Alessio
>>
>>Try this... if your form is save as formname.scx , the method you should use is ... formname.refresh
>
>If you call the second form from the first try using DO FORM frmName WITH THISFORM. And copy the object reference in a property of the second form (Init parameters).
>If not, I think the ACTIVATE WINDOW frmName AND THISFORM.Refresh AND reactivating the other form. Don't forget _SCREEN.LockScreen.
>
>Hope this help

Yes it helps a lot.
I had to change something from your advice but you gave me the right idea.
After I Called the form FRM2 from the form FRM1 I have to move in a table placed in FRM1 and I wanted to see data in FRM2 changed.
The only difference from what you said it's that I had to reference the FRM2 object in a property of the calling form FRM1.
Now it works.
Thanks Alessio
Previous
Reply
Map
View

Click here to load this message in the networking platform