Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Elusive SET TALK Command
Message
From
04/03/2008 14:19:40
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01298531
Message ID:
01298572
Views:
26
>>>>>>>When I pick a form off the menu, I'm starting to see output text scrolling down the desktop.
>>>>>>>The first line in the Load Event is SET TALK OFF.
>>>>>>>
>>>>>>>So how do I find out where this is happening?
>>>>>>
>>>>>>Immediately after the SET TALK OFF in the load, add SET STEP ON. Run the form. Set a breakpoint to SET("TALK")="ON" or step until you see it switched on.
>>>>>
>>>>>
>>>>>The text is appearing BEFORE the form load.
>>>>
>>>>Put SET("TALK") in the Watch window, set a breakpoint on it, and run your code. Then you'll see how it's getting set on.
>>>>
>>>>Tamar
>>>
>>>
>>>I tried that. I can't step through the code because it's being toggled all over the plce in the framework, which
>>>fires the breakpoint nonstop.
>>
>>Which framework? If you have a dataenvironment the form initialization sequence is
>>dataenvironment.opentables
>>.beforeopentables
>>form.load
>>dataenvironment.init
>>form.init
>>form.show
>>form.activate
>>
>>Maxframe - I think you have that - If you're using a dataenvironment, you may need to add THISFORM.DEBeforeOpenTables() as the very first line in the dataenvironment.beforeopentables, which among other things will turn off SET TALK.
>
>
>Yes, I'm using VMP. There are no tables in the DE, and AutoOpenTable is .F. I don't see any parent class code
>running a the form level.
>
>The menu is making a call to 'oForm.DoForm(...)' Somewhere after this, but before the Load, the first text appears.

You can trace the DoForm code. It's not much. You can find it in xxfw.vcx cusforms.DoForm.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform