Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
It's back....This OCX can only be hosted in Visual FoxPr
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00751217
Message ID:
00751343
Views:
23
Hi Martin,

Thanks for your reply.

I found a way to recreate RsToCursor of VFPCom in VFP8. Here it is:
LPARAMETERS oRs, cAlias
LOCAL loCursor

loCursor = CREATEOBJECT("CursorAdapter")
WITH loCursor

	.DataSourceType="ADO"
	.Alias=IIF( Type('cAlias') = 'C', cAlias, Sys(2015) )
	.CURSORFILL(.F., .F., 0, oRs)
 
ENDWITH

loCursor.CursorDetach()
loCursor = null
loRs=null
>Yes, CursorAdapter DO support ADO recorsets, along with native tables, XML docs, etc.
>
Previous
Reply
Map
View

Click here to load this message in the networking platform