目次
索引 🔎︎

# IsObject Function

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.

### Error codes:

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 Statement

Type statement

Using variables