Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Refreshing List Box class and adding data to table
Message
 
To
20/11/1998 13:43:20
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Florida, United States
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00159864
Message ID:
00159925
Views:
18
>HI!
>I have a class where I retrieve all the data then I am using a list box class to put the data in for viewing only but from what I have tried I am not able to refresh the list box for some reason after I selct new data. This list box is a seperate class. Another question is that how can I add data to tables from listbox class. Actually it will be nice to know where to put the code to do it. I have an idea how to program it to append the data but I am not sure where to put it. I want it to work in such a way that when I press Edit or ADD and from theer when I do Save it executes that code for appending data. Edit, add button exist in a class. Is there a way I can incorporate code in the existing class where all the data is sleected, added but the thing which I am not sure about is that how will it execute code inside the class when SAVE is pressed.
>THANKS FOR YOUR VALUABLE TIME!!!!

Noman, what is the RowSource for your listbox? I don't know all the details, but when you retrive the data you could probably use the SELECT... INTO cursor, use the cursor as RowSource for the listbox and also pass the data from that cursor whereever you want it.

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Reply
Map
View

Click here to load this message in the networking platform