CREATE CURSOR List ( a m,b c(1)) SELECT List APPEND BLANK REPLACE A WITH REPLICATE("this is a test",300), b WITH 'F' APPEND BLANK REPLACE A WITH SPACE(300) , b WITH 'F' oCursor = CREATEOBJECT("Products") oCursor.cCursor = "List" IF oCursor.CURSORFILL() replace ALL a WITH a+b BROWSE ELSE aerror(laErrors) messagebox(laErrors[2]) ENDIF DEFINE CLASS Products AS cursoradapter cCursor = "List" Alias = "PriceList" SendUpdates = .T. DataSourceType = "Native" SelectCmd = [SELECT * , $0.00 AS Price, "Ok" AS Buy FROM (THIS.cCursor)] ENDDEFINEIf, OTOH, List really has a *character* field for a rather than a memo field for the field a, then you would want to do it this way, using the properties I have suggested:
CREATE CURSOR List ( a c(200),b C(1)) SELECT List APPEND BLANK REPLACE A WITH REPLICATE("this is a test", 300), b WITH 'F' APPEND BLANK REPLACE A WITH SPACE(300) , b WITH 'F' oCursor = CREATEOBJECT("Products") oCursor.cCursor = "List" oCursor.UseMemoSize = 1 IF oCursor.CURSORFILL(.T.) replace ALL description WITH description+b BROWSE ELSE aerror(laErrors) messagebox(laErrors[2]) ENDIF DEFINE CLASS Products AS cursoradapter cCursor = "List" Alias = "PriceList" SendUpdates = .T. DataSourceType = "Native" SelectCmd = [SELECT a AS description,b , $0.00 AS Price, "Ok" AS Buy FROM (THIS.cCursor)] cursorschema = "description M,b c(10), prix Y,achat C(50)" ENDDEFINEThere are probably a whole host of other methods, but a trivial example won't tell me which is the right one. It all really depends on WHERE YOUR DATA REALLY COMES FROM, which I can't see in the example <s>.