Skip to content

ZeroType

Obsolete

The ZeroType command is obsolete. See the Struct command for creating and using structured types in DataFlex. ZeroType is not needed when using structs instead of Types.

Purpose

To create a string to represent an instance of a structure type and initialize each byte of the string to character zero.

Syntax

ZeroType (type-identifier) to (string-identifier)

Where type-identifier represents an instance of a structure type and string-identifier represents a string variable.

What It Does

Creates a string to represent an instance of a structure type. Each byte of the string is then initialized to character zero. The type represented by the type-identifier argument must be an existing Type created with the Type...End_Type commands.

Example

String sRect
ZeroType tRect To sRect

This example creates a string, sRect, which is the size of the tRect type and initializes each byte of sRect to character zero.