Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hover on combobox moves record pointer?
Message
From
13/07/2015 05:25:47
 
 
To
13/07/2015 04:28:46
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01622000
Message ID:
01622003
Views:
56
>>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)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform