Information générale
Catégorie:
Gestionnaire d'écran & Écrans
>>I have a sample test form I am developing, that uses 2 listboxes and 2 command buttons to create a 'mover'. One button to add, the other to remove an item from the second listbox. This works fine, with one exception.
>>
>>When adding an item to the second listbox, I have discovered that I need to do a THISFORM.Lst2.SETFOCUS() then a THIS.SETFOCUS() in the command button CLICK() in order to get the listbox display to update. Either THISFORM.REFRESH() or THISFORM.Lst2.REFRESH() do nothing. Can anyone explain this behavior?
>>
>Try THISFORM.Lst2.REQUERY(). BTW, what's RowSource of the lidtbox?
That works!
Both listboxes use a rowsourcetype = 6, fields. Source listbox is view based, destination is a temporary cursor. All 'movers' I have looked at appeared to be array based, and I didn't want to do the table->array->table contortions to get the job done. Call me lazy...
Now, can you explain the behavior? Will this also work for grids?
Précédent
Suivant
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