Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Garbage in DisplayValue of Combo?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00215340
Message ID:
00217016
Vues:
27
Sylvia,
Sorry for the delay answering - I've been off-line with family stuff. You don't say what the rowsource is for your combo - array? cursor? This would make a difference. For example if you declare an array with 10 rows and don't fill those rows they will all contain .F.

What
>Barbara -
>
>The only place I do a requery is in the lost focus of the control after I have already observed the behavior. Anyway, you got me thinking a little bit more about when this happens. I only observe this when I'm adding a new record to a table (where the combobox would not start out with any value). I'm wondering now if what I'm seeing is because the combo doesn't by default start out with any value (i.e. at the starting point it doesn't have a displayvalue to show for its row source because nothing has been entered or selected) and that's why I see the garbage. Does that make sense?
>
>Sylvia
>
>
>>Sylvia,
>>Are you doing a requery after changing any of the source data? You may wish to add the requery before displaying the data. I've seen what looks like garbage when an array is initialized but not correctly filled before displaying.
>>
>>HTH
>>Barbara
>>
>>>Has anyone ever seen garbage characters in the combobox DisplayValue when you first get focus to the control? I get this behavior in a combo control and was quite surprised.
>>>
>>>I had planned on relying on the DisplayValue of a combo for some code I was using in the keypress, and interactive change events. Because of what I was doing, I couldn't reinitiaize the DisplayValue in GotFocus, and didn't think I should have to anyway. I managed to find a workaround, but I was just curious if anyone had experienced this before. This is VFP 5.0a and I'm using the dropdown combo style.
>>>
>>>Sylvia
Barbara Paltiel, Paltiel Inc.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform