Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing objects
Message
From
01/06/1999 00:31:29
 
 
To
31/05/1999 08:53:46
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00224632
Message ID:
00224791
Views:
19
Zlatko ---

Jim and Vlad had excellent ideas, but there is another idea to consider: If you are using VFP6 consider adding Value_Assign events to the controls that have data that may be changed and having them point to a Recalc method. No mess, no fuss.

If you're using VFP5, consider putting a call to a Recalc method in the InteractiveChange events of the integral controls.

>I put "on key label F5" in the Load method of my form. Well, it seems to work OK, but there is a problem. If I want to do some action and recalculate some values on my form, I'd like to refresh them what works proprely with ThisForm.object.refresh().
>
>The problem is that "on key labels" works outside this form and I tried with a sub-program: ON KEY LABEL F5 DO subpr.prg, but from there I can't refresh objects on my form using ThisForm.object.refresh(). So, I tried directly with Form1.Object.Refresh ("Form1" is the name of my form), but then I received an error "Object Form1 not found".
>
>What am I doing wrong? How could objects be refresh from an external program, not directly from own methods of form?
>
>
>Thanks a lot, Zlatko.
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform