Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Network:
Windows 2008 Server
>>Hi,
>>
>>Revisiting an old VFP app:
>>
>>I have a form with a Combobox. Rowsource: None, RowSourceType: Fields, Style: DropdownList.
>>
>>If I open the dropdown, hover over an item in the list and then move away without selecting it then the record pointer on the underlying table is moved to the record of the item that I hovered over.
>>
>>Elsewhere on the form I have an 'Edit' button which loads data from the current record and, obviously, it loads data which is not related to the item still shown in the Combobox. I can work round it by storing the selected record on InteractiveChange and moving to that record before loading but......
>>
>>Is this known behaviour - or, if not, any ideas as to what may be causing it ?
>
>Yes, with rowsource of fields it was always so, even in DOS days IIRC. If that causes unwanted behavior, you can select the relevant fields into a separate cursor for that combo so that it doesn't affect an alias which you use elsewhere. If the records in that alias may change and you want the combo to reflect the change, well, requery it as needed.
Thx. Can't believe it's been around as long as that without being fixed since it's obviously not an intuitive or expected behaviour. Also can't believe I hadn't been hit by it before.....
Anyway I've got a workaround in place and can now get back to using IDEs that work as expected (g,d&r)
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