Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ListBox and Text
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
ListBox and Text
Miscellaneous
Thread ID:
00867901
Message ID:
00867901
Views:
62
Hi,
I have a form with a ListBox called List1 and a TextBox called LastName .
The ListBox is linked to a table with 300 records and shows lNames -- from a - z -- and incremental search is on.

When I select the Listbox and type a letter of the alphabet, the ListBox jumps to the first lname starting with that letter. So far so good.
Now,
I want to have that lName appear in the TextBox when I select a name and then double click on it.

So, in the form Designer, with list1, I right clicked, then chose code, then DoubleClikc, and then tried to enter the following, neither of which worked:

thisform.LastName.Value = thisform.list1.Value

_screen.activeForm.LastName.Value = _screen.activeForm.list1.Value

I I select and then try to execute the lines, I am told that thisform and activeform can't be used. How can I refer to the material in a form then?

Can anyone help with this?
Thanks
Steve
Next
Reply
Map
View

Click here to load this message in the networking platform