目录
索引 🔎︎

# IsObject 函数

Tests if a variable is an object, as opposed to primitive data types such as dates, numbers, texts. The function returns True if the variable is an object, otherwise it returns False.

## 语法:

    IsObject(var)

## 返回值:

Boolean

## 参数:

var: Any variable that you want to test.

### 错误代码:

5 无效的过程调用

The following objects return True:

- OLE objects or UNO objects

- Class module object instances

- Extended types or enumerations

- Routines or variables when defined as Object.

- LibreOffice Basic modules

Data structures return True even when empty. Object defined variables return True even if uninitialized.

相关主题

Enum statement

Option ClassModule 语句

Type statement

Using variables