Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Cursor adaptor - string is too long to fit .. in a memo
Message
From
23/11/2003 11:22:36
Peter Wagner
Point Informática Ltda.
Limeira, Brazil
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00852723
Message ID:
00852753
Views:
7
Marcel,
Look some changes I made in your sample... It works for me.

[],s
Peter
CREATE CURSOR  List ( a c(1))

SELECT List 
APPEND BLANK 
APPEND BLANK 

oCursor = CREATEOBJECT("Products")
oCursor.cCursor = "List"

IF oCursor.CURSORFILL(.T.,.F.) && 1° param. to use CursorSchema, 2° to create an empty CA because I dont have the native table for test
	BROWSE 
ELSE
	aerror(laErrors)
	messagebox(laErrors[2])
ENDIF 

DEFINE CLASS Products AS cursoradapter 

	cCursor = ""

	Alias = "PriceList"
	SendUpdates = .F.
	DataSourceType = "Native"

	SelectCmd = [SELECT " " AS description,0.00 AS Price, "Ok" AS Buy FROM (THIS.cCursor)]

	cursorschema = "description M,prix Y,achat C(50)"

ENDDEFINE


>Any ideas ?
>
>Tks
>Marcel
>
>
>
>CREATE CURSOR  List ( a c(1))
>
>SELECT List
>APPEND BLANK
>APPEND BLANK
>
>oCursor = CREATEOBJECT("Products")
>oCursor.cCursor = "List"
>
>IF oCursor.CURSORFILL(.T.)
>	BROWSE
>ELSE
>	aerror(laErrors)
>	messagebox(laErrors[2])
>ENDIF
>
>DEFINE CLASS Products AS cursoradapter
>
>	cCursor = ""
>
>	Alias = "PriceList"
>	SendUpdates = .F.
>	DataSourceType = "Native"
>
>	SelectCmd = [SELECT "A"+SPACE(300) AS description,0.00 AS Price, "Ok" AS Buy FROM (THIS.cCursor)]
>	
>	cursorschema = "description M,prix Y,achat C(50)"
>
>ENDDEFINE
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform