beautypg.com

Visara Master Console Center Scripting Guide User Manual

Page 244

background image

Appendix B Command Syntax

Scripting Guide

244

LOWER

Variable Converts

uppercase

characters to lowercase.

LOWER($String)==>$Lowercase

PARMS

Variable

Receives parameters into

the script.

PARMSvar1[,var3,…,[varn]…]]]

REPSTR

Variable

Returns a string repeated a

specified number of times.

REPSTR($String,%Count) ==>$RepeatedString

RIGHTSTR

Variable Returns

the

rightmost

specified number of
characters of a string

expression.

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

SET

Variable

Make the contents of a

variable equal to the
specified expression.

SETVariable:=Expression

SPLIT

Variable

Populates an array with the

fields of a string delimited

by a string.

SPLIT($Array,$String,$Delimiter)

STR

Variable

Converts a numeric

expression to a string.

STR(%Number) ==>$String

SUBSTR

Variable

Extract a substring from a
character string.

SUBSTR($String,%Start[,%Count]) ==>$SubStr

TRIMSTR

Variable Removes

leading

and

trailing spaces from a

string.

TRIMSTR( $String [, %Where]) ==>$TrimmedString

UPPER

Variable Converts

lowercase

characters to uppercase.

UPPER($String) ==>$UpperString

VAL

Variable

Converts a string expression
to a number.

VAL($String) ==>A%Number