General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2008 Server
>Hi all,
>
>I need a "primer" on why and how to use the cursor adaptor class. The help file does not really have a lot of examples. I have heard of others who have used them instead of the VFP views that are defined with the view designer. I have not really had a problem with views as my main customers are only using the VFP native database.
>
>I started poking about this class as I was thinking of creating a new form class that was a "mover" form i.e. two lists where the user moves stuff from the left hand "available" list to the right hand "chosen" list. I have a class for this but it is very old (2000) and is just kinda cumbersome to use. I have thought of passing in arrays to the form but then got thinking is there a way to pass in cursors as objects?
>
>So really I have 2 questions: when to use the cursor adaptor class and some examples of how to use it and b) any ideas for building a new "mover" class?
>
>Thanks,
>Albert
Hi,
1)For cursoradapter you may read lots of handy tricks in the VFP helpfile, just look for "Data Access Management Using CursorAdapters".
2)For an example of a mover class (listboxes) you can find in the project Solution. Jjust type in your command window ; DO HOME(2)+"solution\main.prg" this will open the samples project (Solution) here you look for Listbox under Controls you will find "Move items between list boxes"
In case you have any questions about one or the other please report back/
Regards,
Koen
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only