Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
It's back....This OCX can only be hosted in Visual FoxPr
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00751217
Message ID:
00751343
Vues:
15
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.
>
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform