Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New(?) combo weirdness...
Message
 
 
To
18/12/2008 10:03:47
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01368493
Message ID:
01368498
Views:
13
Is the property value stored correctly in the SCX/VCX?

>A combo's rowsourcetype=1, columncount=2, and the rowsource is built as a long string, like this:
>
>.rowsource="first string,1,second string,2,third string,3, ... tenth string,10"
>
>The controlsource is actually a character (but may be a numeric - and I didn't try to see what happens then). Now comes the weird part: when the length of rowsource string exceeds 255, the last entry before the boundary matches a blank value.
>
>I think it's because it's missing its pair, the value for the 2nd column, which is by default "". Since it's the last one, it's matched if nothing else matches.
>
>This is not a problem to fix - IMO, the hard part was to catch it and understand how it happens. I do hope to go down in history as the guy who found the LAST combo's bug :) (IOW - it'd be so nice if there weren't any more).
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform