Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to erase content of the last active combobox
Message
De
31/07/2002 10:58:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00684467
Message ID:
00684493
Vues:
35
>Got it.
>
>Create a property on a Form, let's call it oLastActiveCombo.
>
>In the LostFocus() of each combo, set oLastActiveCombo to the combo itself.
>
>In the commandbutton do Thisform.oLastActiveCombo.Value = "" ( or 0).

This looks good. Thx.

>
>
>>>It can be done. Just set the Combo.Value property to "", or 0, depending on the datatype of the Value property. I am assuming that "" and 0 are not the valid BoundColumn values of the List.
>>
>>Let me give you more details on what I want to do.
>>
>>I want the delete button to delete the content of the right combobox. You see from my example that now I have two comboboxes containing values. I just want to erase the content of the last accessed combobox.
>>
>>>
>>>>VFP6
>>>>
>>>>Because I don't have much space on my screen here's what I'd like to be able to do
>>>>
>>>>Have four comboboxes and only one button to delete the content of a combobox
>>>>
>>>>Example : User selects something with combobox3 then user selects something with combobox1 but realizes he made an error and clicks on the delete button and this deletes the content of combobox1
>>>>
>>>>Can this be done? and how?
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform