Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Disabled items in ComboBox
Message
De
02/03/2002 07:55:07
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00626920
Message ID:
00627360
Vues:
21
This is very useful information for me.

>I'm also using a combo with disabled items in ana pplication at work. I found that the backslash character only had to be inserted in the column to which the value property was bound, in this case column 2. This is with VFP 6 SP5.

I have two columns: column 1, visible, with descriptive text, and column 2, invisible, usually a single character, which is the bound column.

I tried disabling the visible item only. This didn't work. Then I tried disabling both - and it worked. I will try disabling only the second item, on

>I used the AddListItem() method to the value into column 2 of the combo. This method only takes character values, while the cursor that will store the value selected by the user is N(2). BoundTo is set to .T. Pleasantly to my surprise, I didn't have to do any special processing to use the value. VFP automatically strips out the backslash character and handles the conversion of the string to numeric. Nice way to go, VFP team.

And I thought I could only use character fields!

Thanks a lot.

Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform