Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using local tables instead of views as a data source
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Using local tables instead of views as a data source
Divers
Thread ID:
00110623
Message ID:
00110623
Vues:
49
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform