Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Classed DataEnvironments and Class Controls
Message
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Title:
Classed DataEnvironments and Class Controls
Miscellaneous
Thread ID:
00883352
Message ID:
00883352
Views:
45
I am having a problem with VFP8 SP1 on XP machine w/ Classed DataEnv, Classed Cursor Adapters with Classed controls (text boxes).

Here is what I have
A Cursor Adapter class based Based on CursorAdapter stored in a classlib
Properties:
ALias = "lv_test"
CursorSchema = "npk I, cText C(10), nTest N(10,0)"
SelectCmd = "SELECT * FROM test WHERE npk = ?lv_npk"
Tables = "text"
KeyFields = "npk"
WhereType = 1
Methods:
INIT()
LOCAL LLRETVAL
RELEASE VP_NPK
PUBLIC VP_NPK
VP_NPK = 0

SET STEP ON

LLRETVAL = DODEFAULT()

RETURN LLRETVAL

A DataEnvironment class based Based on DataEnvironment stored in a classlib
Objects:
CursorAdapter class from above.
Properties:
DataSourceTYpe = "NATIVE"
DataSource = .null.

A TextBox class based on TextBox stored in a classlib
No changes to this class.

NOTE: All the classes above are stored in the same classlibrary.

Create a form (not defind off of anything)
Properties:
DeClass - Name of DE Class from above
DeClassLibrary - Class library where DE class is located.
DataSession - 2 Private
Objects:
Text box class defined from above.

RUN FORM

I am seeing the SET STEP ON Hit twice in the init of CA. If I remove the textbox from my form, it only fires once.

Is this a bug or what or is it my machine???????

TIA
Mark.
Next
Reply
Map
View

Click here to load this message in the networking platform