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

Click here to load this message in the networking platform