Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Elusive SET TALK Command
Message
De
04/03/2008 14:24:41
Mike Yearwood
Toronto, Ontario, Canada
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01298531
Message ID:
01298578
Vues:
20
>>>>>>>>>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.
>
>Excellent! That's usefull. Stay tuned...

I can't. Someone may write a letter to my employer. :)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform