Skip to content

Zerostring (Obsolete Command)

Obsolete

This command is replaced by the ZeroString function.

See Also: variable, Put_String, Type

Purpose

To create a string of null (ASCII value zero) characters.

Syntax

zerostring
    length
    to
    variable

Argument Explanation

  • length: The number of characters to clear.
  • variable: The destination variable to be cleared.

What It Does

See External_Function for more information on calling DLLs from DataFlex.

Zerostring writes length zeroes (0) into variable.

Zerostring 25 to sValue

The above command is functionally the same as:

Move (Repeat(character(0), 25)) to sValue

This command can be used to zero-fill strings that must be filled to a fixed length before they are passed to a DLL function.

ZeroString (icTextLen + 1) To sHelp  // add 1 for Cstring terminator
GetAddress of sHelp To lpsHelp
Send Windows_Message Of hoEditor CMM_GETWORD lpsCmPosition lpsHelp