Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to erase content of the last active combobox
Message
 
À
31/07/2002 10:40:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00684467
Message ID:
00684479
Vues:
26
This message has been marked as a message which has helped to the initial question of the thread.
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).


>>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?
- Jayesh
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform