Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Combobox behavior redux
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00341362
Message ID:
00343777
Views:
29
Touche!



>Don't be so hasty, my Young friend,
>It may still be too early to say 'The End'.
>If anything I've learned from all the battles I've won,
>The problem is not solved until thorough testing is done.
>
>>One thing from this thread is true;
>>Don't give up until you're through;
>>By giving this enough attention;
>>The solution you are sure to mention;
>>And now that the answer is revealed;
>>This thread should forever now be sealed
>
>
>>>I know now what did cause it;
>>>you're right, an empty table.
>>>But a blank new row won't fix-it
>>>(in the framework I'm not able)
>>>So I swapped out all my combo controls,
>>>for listboxes (they work well).
>>>All in all, and truth be told,
>>>y'all's help has been exceptional.
>>>
>>>>A combo with empty rowsource
>>>>Behaves badly - you might say 'of course'
>>>>If Reccount() is Zero
>>>>Just add a blank new row
>>>>I hope this will help without force
>>>>
>>>>
>>>>
>>>>>I wish it were that clear,
>>>>>but this problem would always appear
>>>>>when I requeried the source view
>>>>>and refreshed the form anew.
>>>>>The code was really simple, it set the controls Enabled
>>>>>When editing it was true, otherwise disabled.
>>>>>No pointer was moved or alias called.
>>>>>(In fact it was so simple, I was appalled!)
>>>>>It has something to do when the requery was done
>>>>>and the source view reccount when from some to none.
>>>>>Beyond that I have not a useful clue
>>>>>I've changed the behavior, what else to do?
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>It sounds like such a waste --
>>>>>>To have to cut and paste.
>>>>>>Are you sure that it's true
>>>>>>And that it's not just you?
>>>>>>Did you overlook something in haste?
>>>>>>
>>>>>>:-)
>>>>>>
>>>>>>>I have a combo instance, based on a simple class.
>>>>>>>It bombs out of Refresh(), a real pain in the ass.
>>>>>>>The instance code is fine, it's DODEFAULT that crashed.
>>>>>>>No record pointer is moved, no cursors are trashed.
>>>>>>>I figured out it was internal;
>>>>>>>some table oriented crap: infernal.
>>>>>>>When I moved the class code to the 'box,
>>>>>>>No longer was I crashing the Fox.
>>>>>>>I hated coding what is a workaround hack,
>>>>>>>But I needed to get my productivity back.
CySolutions, Medical Information Technology
You're only as good as your last
success, so . . .If it works. . .don't fix it!
Previous
Reply
Map
View

Click here to load this message in the networking platform