Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Len(Combo.text)=padr(displayvalue, len(.controlsource))
Message
De
14/08/2009 15:53:55
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
13/01/2003 23:37:54
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00741277
Message ID:
01418171
Vues:
185
>>I've searched the vast shores of threads about the combos, but something's imperfect there - the search or I.
>>
>>Or maybe I do have a new and original bug with combos? Here's the layout:
>>VFP7 SP1
>>.rowsourcetype=6
>>.rowsource="alias.cdesc,ckey"
>>(cKey c(16), cDesc c(80))
>>.style=dropdown combo (don't tell me to go to dropdown list, it's a must, this is a quickfill combo)
>>.controlsource="otheralias.fkey" (c(16))
>>.columncount=2
>>.boundcolumn=2
>>.boundto=.f.
>>
>>The problem is that the value I see is not the displayvalue (which I see in the debugger as being all 80 characters long), but rather the .text, which is 16 characters long. The visible value gets truncated to the length of the controlsource. The combo is sitting on a page of a pageframe (bI'm having this with a few other combos which are in a container, without pageframes, but also are not .style=dropdown combo).
>>
>>Anyone? I mean, did anyone have this problem? If so, is there a solution? I want the visible value to be as long as it should be.
>
>Hi there - solved by setting the combo.style=drop down list in PEM window, setting it to dropdown combo in .gotfocus, and back to list in .lostfocus.

Thanks. Good to know the bug isn't gone, and that this workaround still works. Thanks to UT for keeping this for me :).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform