Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQLConnect handle
Message
De
24/01/2002 17:31:04
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00610108
Message ID:
00610165
Vues:
30
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform