Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using local tables instead of views as a data source
Message
General information
Forum:
Visual FoxPro
Category:
The Mere Mortals Framework
Title:
Using local tables instead of views as a data source
Miscellaneous
Thread ID:
00110623
Message ID:
00110623
Views:
48
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?
-Paul

RCS Solutions, Inc.
Blog
Twitter
Next
Reply
Map
View

Click here to load this message in the networking platform