home *** CD-ROM | disk | FTP | other *** search
- Global compdate As String
- Global usid As String
- Global pword As String
- Global sid As String
- Global datbase As String
-
- Global dbconn As Integer
- Global ret As Long
- Global updflag As Integer
-
- Global ctx_pointer As Long
- Global con_pointer As Long
- Global cmd_pointer As Long
-
- Sub extendederrordata (c_pointer As Long)
- Dim ncols As Long
- Dim rows_read As Long
-
- ret = VBCT_res_info(c_pointer, CS_NUMDATA, ncols)
- ret = VBCT_do_binds(c_pointer)
- While ret = CS_SUCCEED Or ret = CS_ROW_FAIL
- ret = VBCT_fetch(c_pointer, 0, 0, 0, rows_read)
- edata$ = ""
- If ret = CS_SUCCEED Then
- For i = 1 To ncols
- t$ = VBCT_data(c_pointer, i)
- edata$ = edata$ & t$ & " "
- Next
- MsgBox "Extended error data is " & edata$
- End If
- Wend
- End Sub
-
- Function process_no_rows (c As String) As Integer
- Dim restype As Long
- Dim ncols As Long
- Dim rinfo As Long
- Dim cmd_ptr As Long
-
- ret = VBCT_cmd_alloc(con_pointer, cmd_ptr)
- process_result = 99
-
- ' Set up the command buffer for processing
-
- ret = VBCT_command_str(cmd_ptr, CS_LANG_CMD, c, CS_UNUSED)
-
- ' Send the command(s) to the server for processing
-
- ret = VBCT_send(cmd_ptr)
-
- ' Process the result sets comming back from the server
-
- result_ret = VBCT_results(cmd_ptr, restype)
- res$ = ""
- While result_ret = CS_SUCCEED
-
- Select Case restype
-
- Case CS_CMD_DONE, CS_CMD_SUCCEED, CS_CMD_FAIL
- Select Case restype
- Case CS_CMD_DONE
- rt$ = "CS_CMD_DONE"
- Case CS_CMD_SUCCEED
- rt$ = "CS_CMD_SUCCEED"
- Case CS_CMD_FAIL
- rt$ = "CS_CMD_FAIL"
- process_result = 0
- End Select
- ' MsgBox "Command status " & rt$ & " recieved"
- Case Else
- MsgBox "This command should never reach here"
- End Select
- result_ret = VBCT_results(cmd_ptr, restype)
- Wend
-
- process_no_rows = process_result
- End Function
-
-