Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
New(?) combo weirdness...
Message
 
 
À
18/12/2008 10:03:47
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01368493
Message ID:
01368498
Vues:
12
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform