Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Primer on cursor adaptor class
Message
From
16/07/2015 13:33:09
 
 
To
16/07/2015 12:32:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01622088
Message ID:
01622114
Views:
62
>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
Map
View

Click here to load this message in the networking platform