Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Refreshing List Box class and adding data to table
Message
 
À
20/11/1998 13:43:20
Noman Aftab
Embry-Riddle Aeronautical University
Daytona Beach, Floride, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Divers
Thread ID:
00159864
Message ID:
00159925
Vues:
19
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform