Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Can functions return cursors?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01078887
Message ID:
01079010
Views:
16
Check CursorAdapter class (VFP8+).

You may also define your own class for cursors
DEFINE CLASS MyCursor As ...
	cursorname=""
PROCEDURE Init(...)
* create and populate cursor somewhere here
...
ENDDEFINE
Create an instance of this class inside your function and return it as the result. But it's almost the same as passing back the cursor's name as Sergey suggested.
Previous
Reply
Map
View

Click here to load this message in the networking platform