Parse String; Pause - Symantec WISESCRIPT EDITOR 7.0 SP2 - FOR WISE INSTALLATION EXPRESS V1.0 Installation Manual

Hide thumbs Also See for WISESCRIPT EDITOR 7.0 SP2 - FOR WISE INSTALLATION EXPRESS V1.0:
Table of Contents

Advertisement

Parse String

Pause

WiseScript Editor Reference
This action splits a text string and places the results in two variables.
You can split the string at a character or substring that you specify, which discards the
character or substring you specified. Example: If you split the string "ONE,TWO" at the
first occurrence of a comma, "ONE" is put into destination variable 1 and "TWO" is put
into the destination variable 2. If the character or substring is not found, the entire
string is put into destination variable 1, and nothing is put into destination variable 2.
The find is case-sensitive.
You can also split a string at any arbitrary character position, which discards no
characters. Example: If you split the string "ONE,TWO" at character position four from
left, then "ONE," is put into the destination variable 1 and "TWO" is put into the
destination variable 2.
To complete the dialog box
Source Value
Enter the text to be parsed. You enter text and variables (examples: %MAINDIR%
or %MAINDIR%\%PICTDIR%). To include a literal percent (%) symbol, use %%.
Pattern/Position
Enter the character pattern or the character position at which to split. Character
patterns are case-sensitive unless you mark Ignore Case. To split at a pattern,
enter any number of characters, including numbers, and select one of the pattern
options in Operation. To split a string based on character position, enter the
character position, where 1 is the first character, and select one of the position
options in Operation.
Destination Variable 1,2
Select or enter variables to store the two strings resulting from this operation.
Operation, below, determines how each variable is populated.
Operation
Select how to split the text string.
Trim Spaces
Mark this to remove leading and trailing spaces from both destination variables.
Ignore Case
Mark to make pattern matching case-insensitive.
The sample scripts TextFile.wse and URL.wse use this action. For details on sample
scripts, see ScriptHelp.htm in the Samples subdirectory of this product's installation
directory.
This action temporarily stops a script from executing. After the specified number of
milliseconds, the script continues. Example: Use this action to display a billboard for
several seconds.
To complete the dialog box
Milliseconds to pause
Enter the number of milliseconds to pause the script. A millisecond is 1/1000 of a
second. To pause for one second, enter 1000.
WiseScript Actions
101

Advertisement

Table of Contents
loading

Table of Contents