Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLConnect handle
Message
 
To
24/01/2002 16:42:44
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00610108
Message ID:
00610138
Views:
19
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
Map
View

Click here to load this message in the networking platform