Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cursoradapter question
Message
De
27/07/2016 04:29:29
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Classes - VCX
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01638638
Message ID:
01638720
Vues:
94
Ciao Michele,

In my understanding, .cursorSchema allows the cursor adapter to automatically map the fields from a remote database to VFP fields. This way you can switch the cursorAdapter from dbf data to SQL data with the same cursor structure exposed to your application (hence the name 'cursorAdapter').

You can take advantage of the cCursorSchema() function provided by the FoxInCloud public layer:
_cliptext = cCursorSchema('alias') && modify command abdata
&& then paste into the cursorAdapter.cursorSchema property in designer
>>>I have to create a cursoradapter object at runtime...i can set without problems the "selectcmd" property, but spmeone can suggest me how to populate CursorSchema property......I am working with postgresql as backend..
>>>
>>>Thanks
>>
>>If you know the fields you select you should know their types too.
>>What is the problem with CursorSchema?
>
>Yes, i know the fields but i don't know their characteristics...i exactly don't know the type or the length, all info that i need to write in cursorschema...
Thierry Nivelet
FoxinCloud
Give your VFP application a second life, web-based, in YOUR cloud
http://foxincloud.com/
Never explain, never complain (Queen Elizabeth II)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform