I've got a free table that I want to use as the source for a dataenvironment. I've added the following to the adataenv.prg:
DEFINE CLASS CC2Status AS CFreeTableCursor
CursorSource = M:\MAS90\Import\Status.DBF
ENDDEFINE
DEFINE CLASS StatusEnvironment AS ShopMgtEnvironment
FUNCTION LoadCursors()
DIMENSION this.aCursors[1]
this.aCursors[1] = 'CC2Status'
ENDFUNC
ENDDEFINE
Then I created a new form based on cbasemodalform and dropped CDELogical onto it, and set the cdataenvironment property to: StatusEnvironment.
When I open the form, I get an error:
#10
Syntax Error
Line 89
Code: this.AddObject("o" + this.aCursors(lnCursor), this.aCursors(lnCursor))
Do I need something else to use a local table instead of a view?