Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Elusive SET TALK Command
Message
From
05/03/2008 10:47:49
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01298531
Message ID:
01298919
Views:
35
>Here is a snippet taken from grdBase.Tooltip_Assign:
>
>
>IF SET("TALK") = "ON"
>  *
>  *  the following line of code looks pretty bizarre,
>  *  but in some scenarios VFP insists on evaluating
>  *  properties set in the Properties Sheet even before
>  *  the form.Load fires, which is where we SET TALK OFF
>  *
>  *  if SET STATUS BAR is ON, the talk output is evidently
>  *  sent to the status bar, because you only see the
>  *  talk output when SET STATUS BAR is OFF
>  *
>  *  ...I consider this to be a VFP anomaly, which has
>  *  been there for a long time...
>  *
>  *  see also
>  *    XXDTES("XXFW.VCX","bizarre","cmdBase","Enabled_Assign")
>  *    XXDTES("XXFW.VCX","bizarre","txtBase","UIEnable")
>  *
>  SET TALK OFF
>ENDIF
>
>
>In all my years of doing VFP, I have never seen this behavior before now. This tells me that this toggling
>of TALK ON and OFF is an environmental thing caused by someting in VMP, because it never happens in any other
>application that I'v done.
>
>The solution that I seem to have found, which is working, is to put SET TALK OFF as the first line of the
>BeforeOpenTables method of each form.

Well, Kevin

I've been doing VFP as long as you and maybe longer. That is not relevant, if the behavior can be demonstrated outside of VMP. Drew showed me it happens.

grdBase/xxfw.vcx UIEnable comes before the tooltip assign. It also explains that the UIEnable of a grid in a pageframe fires before the form.load. Drew considered that a bug. It goes on to SET TALK OFF if necessary.

I just traced it through from the DoForm to the UIEnable. What TALK stuff are you seeing between those two places?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform