beautypg.com

Areset – Visara Master Console Center Scripting Guide User Manual

Page 77

background image

Chapter 5 Script Commands

Scripting Guide

77

ARESET

Syntax:

ARESET( Array)

Description:

Reset the contents of an array to “empty”.

Action:

All elements of Array are discarded. Array returns to its state before

first use (its initialization state)—empty.

Parameters:

Array. Array variable. The array to reset to “nothing”.

Returns:

N/A.

Notes:

ALEN( Array) equates to zero after ARESET() operates on Array

Example:

$Arr[ 4] := “Hello”
$Arr[ 5] := “There”
%Size := ALEN( $Arr)

// 2

$Var := $Arr[ 5]

// “There”

ARESET( $Arr)
%Size := ALEN( $Arr)

// 0

$Var := $Arr[ 5]

// “”

See Also:

N/A