There are two versions of this function, one connects to ODBC databases and the other connects to other types of databases.
Arguments ( ODBC ):
as_profile - ODBC Profile
as_userid - Userid
as_passwd - Password
Arguments ( Non ODBC ):
as_userid - Userid
as_passwd - Password
Return:
True = Logon was successful
False = Logon failed
Usage ( ODBC ):
If Not sqlca.of_dblogon("EAS Demo DB V10", "dba", "sql") Then
sqlca.of_dberror()
Return ERROR_FUNCTION_FAILED
End If
Usage ( Non ODBC ):
sqlca.DBMS = "SYC"
sqlca.ServerName = "SybProd"
sqlca.Database = "servicedb"
If Not sqlca.of_dblogon("userid", "password") Then
sqlca.of_dberror()
Return ERROR_FUNCTION_FAILED
End If