beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 243

background image

Appendix B Command Syntax

Scripting Guide

243

FINDSTR

Variable

Searches a string for a

regular expression pattern.

FINDSTR($String,$Substring==>$FoundText

FORMATSTR

Variable

Formats a string by
combining literal characters

with conversion

specifications.

FORMATSTR($String[,expr1,[expr2,…,[exprn]…]])

GETENV

Variable

Obtains the current value of
the given environment

variable.

GETENV($Variable)==>$Value

GETPID

Variable Obtains

the system process

identifier for this script.

GETPID()==>%ProcessId

HEXSTR

Variable

Converts an integer to a hex

string.

HEXSTR(%Number)==>$Hex

INC

Variable

Adds one to a numeric
variable’s value.

INC%Variable

JOIN

Variable

Combines the elements
of an array into a string.

JOIN($Array,$Delimiter)==>$String

LEFTSTR

Variable Returns

the

leftmost

specified number of

characters of a string
expression.

LEFTSTR($String,%Count)==>$Substr

LEFTSTR

Variable Returns

the

leftmost

specified number of

characters of a string
expression.

LEFTSTR($String,%Count)==>$Substr

LEN

Variable

Returns the number of
characters in a string

expression.

LEN($StringExpr)==>%Count