Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting up List Box
Message
From
08/10/2018 13:24:25
 
 
To
08/10/2018 08:02:06
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Miscellaneous
Thread ID:
01662497
Message ID:
01662499
Views:
47
>Howdy and good am everyone,
>
>I would like to create a screen that has a list that only needs to populate two fields of a table. The intent is to scroll up and down and on the right side of the list box, display the rest of the fields that pertain to the record..
>
>How can I do the following:
>
>a. Upon opening up the form, have the list box highlight the current record it's sitting on. As I scroll change the color to show which record it's currently pointing at.
>
>b. When I add a new record, update the list adn pointer should be placed on the record that was just added.

Assuming the RowSource for the list is 6-Fields, in the List's Init method, put:
This.Value = RECNO("YourTable") && fill in the right alias
In the InteractiveChange method, put:
ThisForm.Refresh()
Tamar
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform