Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>I have an idea what I am doing wrong, but not sure what is the way to correct it. In my form activate I have code like:
>>
>>thisform.combo1.additem("First choice")
>>thisform.combo1.additem("Second choice")
>>thisform.combo1.additem("Third choice")
>>
>>My problem is choices seem to be duplicating. I think I need to put the code somewhere else? Am I doing anything else wrong?
>>
>>TIA
>>Jim
>
>Try the form init.
Every time the form gets activated your code will run, thus, duplicating your values. If possible, put the code in the control's init event. That way, you will be taking advantage of encapsulation.
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement