Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CRASH: Combobox into a Sparse=.F. column
Message
De
21/01/2005 08:44:09
Walter Meester
HoogkarspelPays-Bas
 
 
À
19/01/2005 16:11:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00978487
Message ID:
00979230
Vues:
17
Hi marcia,

>I'm sorry, but I do not happen to agree with you. I use combos all the time - they are one of my favorite controls - and I do not have any particular issues with them.

One that comes in mind is that when you bind the value to a numeric column and the control is not bound to anything (Controlsource = ""), the Value, sometimes is numeric, sometimes caracter. The other way arround also seems to be true. When it is bound to a column that contains character, but a numeric value, it sometimes is converted into numeric and sometimes to character.

I've dealt with this issue more than once since VFP5. I now always set the controlsource to a character property to avoid the issue. Anyways, this is one bug that really irritates me.

One thing that is terribly stupid imo, is that when you have represent a character listitem of the combobox which is bound to a numeric value in the table you'll have to:

- Set the sparse property to .F., Gives you the ugly downarrow for every row in stead of only when the field is active.
- Use views to load the listitem in a characterfield, unbound the column and the combobox and a mechnism to fill the characterfield when changed.
- Or use a SEEK or other kludge to get it strait.

Why can't the VFP team solve the situation in such manner that if the sparse property is set to .F. the combox' downarrow is not displayed in every row ?? sure a workarround does exists (And I use them a lot), but it still is a kludge that should not neccesary at all.


Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform