DatabaseError()

语法

Error$ = DatabaseError()
概要
Returns a description of the last database error in text format. This is especially useful with the following functions: OpenDatabase(), DatabaseQuery() and DatabaseUpdate().

参数

无.

返回值

Returns the error description.

示例

  ; First, connect to a database with an employee table
  ;
  If DatabaseQuery(#Database, "SELECT * FROM employee") ; Get all the records in the 'employee' table
    ; ...
    FinishDatabaseQuery(#Database)
  Else
    MessageRequester("Error", "Can't execute the query: "+DatabaseError())
  EndIf

参阅

DatabaseQuery(), DatabaseUpdate()

已支持操作系统

所有

<- DatabaseDriverName() - Database Index - DatabaseID() ->