Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Listbox problem
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00007044
Message ID:
00007056
Views:
34
>Im using a listbox on a modal form to return a value to a
>calling form and it isnt working. When I enter the
>value to a textbox on the form it works fine. How do I
>access the value in the list box place it in the variable
>the modal form is returning?
>
>Chris

You need to store the list's value to a property of
the form. The list won't be there anymore by the
time you hit the unload event.

You can either make the forms property the controll
source or grab it on a change event if the first
will mess up you display.

ThisForm.List1.ControlSource = ThisForm.ReturnValue
In the UNLOAD event:
RETURN ThisForm.ReturnValue


Chris
Chris
Previous
Reply
Map
View

Click here to load this message in the networking platform