General information
Category:
Object Oriented Programming
Title:
Classed DataEnvironments and Class Controls
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only