Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Treeview - Enabling after having DISabled
Message
From
15/12/2002 21:28:33
 
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00733190
Message ID:
00733208
Views:
63
So am I. As you, I could NOT reproduce on a simple form.

My **guess** is that I use WITH/ENDWITH through the whole code in the erroring form and possibly something gets a little confused as concerns the OLE object itself.
The DISable is early in execution and it worked OK. Never did try to see if it would fail next time. I think I'll do that tomorrow (I put the same code in both places, so I'll NOP the DISable code and go back to the original to see.

cheers


>Jim,
>
>I'm glad that you solved your problem but I still baffled why it didn't work in the first place.
>
>>I forget, Sergey, but the problem is SOLVED!!!
>>
>>MSKB #Q195533 describes a situation of the same error message with a COM object and suggested a workaround.
>>
>>Using that I coded:
Local xq
>>xq = This.TypeSelector.OBJECT
>>xq.Enabled = .T.
>>xq = NULL
>>
>>and the error message stopped and I can now enable the treeview.
>>
>>Thanks for your help.
>>
>>>Jim,
>>>
>>>If you suspend execution at the time of error does
ThisForm.TypeSelector.OBJECT.Enabled = .T.
works from command window or errors out?
>>>
>>>>I don't see a mis-type... I copied the disable statement to under the enable statement and they both are identical except the other side of the equal sign.
>>>>
>>>>I first had it coded under a "WITH ThisForm" and got the error trying to enable then too.
>>>>
>>>>I too have no problem with both those statements in a 'simple' form, but the error is consistent in THIS damned form#@$!#@$!%@$
Previous
Reply
Map
View

Click here to load this message in the networking platform