Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Calling Form's Refresh from Init
Message
From
24/01/2002 17:20:37
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00609928
Message ID:
00610160
Views:
20
>Hi everybody,
>
>I've just noticed, that our BaseForm class has thisform.refresh() in Form's Init in case, it sets a filter. I'm not sure, it's allowable to call form's refresh from Init, it breakes event sequence, it may cause lots of undesired effects, etc.
>
>For instance, I usually code Form's Init this way:
>
>my custom code
>dodefault()
>some other custom code
>
>Besides, as far as I know, first activation of the form calls its Refresh anyway.
>
>What would be your opinion?
>
>Thanks a lot in advance.

Hi Nadya

Like you I think it's redundant, but probably harmless. However you really should be moving the record pointer to ensure the fileter is applied.

Maybe replace:

ThisForm.Refresh()

With

GOTO RECNO()
?
----
Regards
Andy Kramek
Previous
Reply
Map
View

Click here to load this message in the networking platform