Hi Jimmy
>Can you add a custom-classes to the dataenvironment with the same prop. as a cursor.
No, you cannot add Visual Classes (like CUSTOM) to non-visual containers. The DataEnvironment will only accept objects based on the Cursor and Relation classes. By the same token, these classes cannot be added to Visual Containers either. As I said, I suspect this is deep down in the VFP engine and is not something that is likely to change.
>Is the cursor-object just a place to store some variables or does it actually do something ?
The word 'cursor' means two things here, first it is the object, based on the Cursor Base Class, which has properties to define the source of the data that is to be used. Second it is the physical entity that actually has the data (i.e. the DBF file - irrespective of whether that is a temporary table, a permanent table or a view). So in that sense it does something but essentially it is the carrier of properties. The code to deal with cursors (and relations) is in the methods of the DataEnvironment base class.
I suppose you could stop using these classes, create a visual class which has the properties of the Cursor and another container which has all the methods needed to create and populate the cursor (after all, I have done it for dealing with back end servers, but not in visual classes <g>).
Seems an awful lot of work to reproduce something that already exists though.
----
Regards
Andy Kramek