Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get logical data from PostgreSQL
Message
De
23/01/2005 10:59:07
 
 
À
22/01/2005 21:28:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
00979680
Message ID:
00979807
Vues:
34
>Hello,
>
>you have missed to set the CursorSchema property.
>
>ca.CursorSchema = 'test L'
>ca.DataSourceType='ODBC'

Christian,

I changed CreateCursorAdapter to
PROCEDURE CreateCursorAdapter

PUBLIC ca AS cursoradapter
ca =CREATEOBJECT( 'cursoradapter' )

ca.CursorSchema = 'test L'
ca.DataSourceType='ODBC'
ca.DataSource = tnConnHnd 
ca.SelectCmd = "SELECT * FROM TEST"
IF !ca.cursorfill(.t.)
  AERROR(gaError)
  MESSAGEBOX(gaerror[1,2])
  RETURN
  ENDIF
ENDPROC
Now cursorfill() causes error:

Type conversion required by the DataType property for field 'Test' is invalid.
Andrus
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform