For example like this, is that ok?
The application of the open () event:
The Transaction sqluser
Sqluser=create transaction
Sqluser. DBMS="ODBC"
Sqluser. The AutoCommit=False
Sqluser. DBParm="Connectstring='DSN=mytest"
CONNECT USING sqluser;
If sqluser. SQLCode & lt; 0 then
Messagebox (" connection ", "the reason for failure:" + sqluser. SQLErrText, StopSign!)
The HALT CLOSE//terminate the system run
End the if
Application of the close () event
DISCONNECT the USING sqluser;
If sqluser. SQLCode & lt; 0 then
Messagebox (" disconnect "failure," the reason for failure: "+ sqluser. SQLErrText, StopSign!)
End the if
Destroy sqluser
CodePudding user response:
Of course theCodePudding user response:
Thank you very much upstairs, but such complains, could help see what reason be?I declare the global variables: transaction sqluser, create after save, using the create hint say:
Illegal data type: sqluser
CodePudding user response: