Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQLConnect handle
Message
From
24/01/2002 17:31:04
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00610108
Message ID:
00610165
Views:
28
Hmmmm ... just guessing here, as I still don't have all the puzzle pieces ... is your connection a shared connection? It should be ....

~~Bonnie




>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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform