Sorry,
How's this:
Before:
From inside cmdButton.Click()
Local nConnVal
oConnVal = NewObject("SQLConn","ClassLib","AppName")
nConnVal = oConnVal.nConn
If nConnVal > 0
oBuildSQLSelectClause = NewObject("BuildSQLSelectClause","ClassLib","AppName",;
nConnVal)
Blah
Blah
EndIf
Now:
Local nConnVal
oConnVal = NewObject("SQLConn","ClassLib","AppName")
nConnVal = oConnVal.nConn
If nConnVal > 0
oBuildSQLClauses = NewObject("BuildSQLClauses","ClassLib","AppName",;
nConnVal)
EndIf
BuildSQLClauses.Init() has:
oBuildSQLSelectClause = NewObject("BuildSQLSelectClause","ClassLib","AppName",;
nConnVal) as well as the other NewObject(BuildxClause..) calls that were once in the cmdButton.Click() method.
The value is still 1 at the point of failure, but I get the "Invalid..." message
Hope this helps...
Keith
Previous
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