Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Elusive SET TALK Command
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01298531
Message ID:
01298736
Vues:
23
You might try posting the problem here too: http://vmpdiscussion.visionpace.com/

>Ok, I'm really frustrated here!!!
>
>I am opening a form with a direct call to DO FORM Forms\wzinvoice.scx. SET TALK is OFF at this point. I have a
>breakpoint set to change when TALK changes.
>
>When I step into the DO FORM, the debugger now goes into the PageCount_Assign of pgfBase. I did a search, and
>this property is not being set in code anywhere. The value passed in is 6, which is the number of pages on the
>pageframe. As soon as I step, TALK is set to ON.
>
>What I don't get is why I'm in this method. I have yet to reach any DE or Load event code, so the controls on
>the form have not yet Init'ed, so how can the PageCount be getting set?
>
>Ok, I'm really stuck here and I need some help.
>
>
>
>
>
>
>>>>>>>>>>>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. :)
ICQ 10556 (ya), 254117
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform