Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Combobox behavior
Message
From
01/03/2000 16:25:26
 
 
To
01/03/2000 15:46:48
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00339984
Message ID:
00340133
Views:
21
>Hi Fred,
>
>That's just the way I code. I get it to work as verbose as possible, then I refactor for efficiency. BTW, here's an interesting twist: If I move the class Refresh code into the instance and don't DODEFAULT(), the error never occurs.
>
>>Does the fact that you are always Enabled=.f. and then Enabled=.t. in the refresh cause this problem? I mean, is the fact the Enabled somehow forcing the refresh to re-execute or something? Wouldn't it be better to only Enable/Disable as needed with:
>>
>>IF PEMSTATUS(ThisForm,"FormState",5)
>>   This.Enabled=(ThisForm.FormState > 0)
>>ENDIF
It wasn't meant as a comment on your coding style, only on the fact that the control was ALWAYS being disabled and then possibly being re-enabled. I was just wondering if that was causing the effect you were seeing. Interesting that it only happens when DODEFAULT() is used, and not when the code is in the instance.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform