Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A problem with VFPCom.ComUtil
Message
De
16/04/2003 04:24:03
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
16/04/2003 03:22:24
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00778200
Message ID:
00778228
Vues:
13
>I am having a trouble with the CursorToRS() function of VFPCom.DLL. The RsToCursor() don't transform the none English string, such as "¤¤°ê" Chinese character set, the cursor result is a string of space only.
> I don't know what happen with it ?
>
> If you knownd please tell me & thanks very much!
>
> Attached the foxpro code:
>
>#DEFINE C_VFPCOMCLASS 'vfpcom.comutil'
>oVFPCOM = CreateObject(C_VFPCOMCLASS)
>oRecordSet = CreateObject('ADODB.RECORDSET')
>oRecordSet.CursorType = 3 && adOpenStatic Also adOpenForwardOnly
>oRecordSet.LockType = 1 && adLockReadOnly
>oRecordSet.Open('SELECT name FROM employee ', + ;
> 'Provider=SQLOLEDB;Password=123;Persist Security Info=True;User ID=usr;Initial Catalog=db_test;Data Source=sqlsvr') && the name is chinese name.
>nError = oVFPCOM.RSToCursor(oRecordSet,"employee")
>BROWSE

Do you have a good reason not to use SPT instead ?
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform