>I have a little problem. I've made a class like almost the same as in tasm.traders examp - LMOVERS. (simply two listboxes, four commandbuttons that take care of items and moving to and fro). This is a class and I initiate it in form where I set parameters for source and target
>tables and fields. I use two fields - ID and TEXT. I make it one and it appears in listbox like "1 whatever it is". Now here's a question. Is there some easy (?) way to check for changes and update target table? I don't need to update the source, it's just a list of all possible records. I already have a "change checker" In every click method I set property "changed" to .T. So, how to update it? There are possible insert and deletes too.
>Dezider
I'm not familiar with the Tasm Traders example but I'm assuming that you are using arrays to populate your listbox.
Have you tried ALEN(arrayName,1). This will give you the number of rows in the array. If you find that the array length has changed since the last time you checked, update the target table with whatever has been changed.
I hope this helps...
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement