Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C# replacement for VFP code
Message
From
07/11/2006 02:43:47
 
 
To
07/11/2006 02:29:35
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01167122
Message ID:
01167595
Views:
9
May very well be, but what about cursors? There's nothing even similar in DotNet. And by similar, I mean like Budweiser and Heineken, not like Budweiser and heroin, or cursors and ADO.net.

ADO.NET has the dataset/datatable. It does not contain all the functionality of a VFP cursor, but you can do more than is commonly recognized.

You can create a primary key and do a subsequent FIND [equivalent of a SEEK into an indexed cursor], you can perform aggregate functions like SUM, and you can bind it to a gridview and get the same general scrolling performance as you would in a VFP grid [in a windows forms application].

While you can't perform full-blown SQL syntax against datasets, you can execute rowfilter/Select syntax, and you can simulate basic JOINs by establish relations between tables and specifing parent/child syntax in the rowfilter.

Again, they're not as powerful as a VFP cursor, but are stronger than commonly believed.

Also, in VS2005, the new Generics List object contains functionality that allows developers to store and work with larger collections, with less overhead than the dataset.

Kevin

p.s. if you think Budweiser and Heineken are similar, we really need to talk.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform