Roulette Xtreme 2.0 - System Designer
Clear
Identifier Index > C > Clear

Glossary Item Box

Clear

Format:  Clear dest-support-action

where

Description

The Clear identifier performs a clear function that removes all data from the dest-support-action.  When referring to the Last Answer supporting action identifier, the Clear identifier initializes the internal variable answer to null (nothing).

Example 1

We have used the action statement Ask in our designed system to verify if the user wants to play another session.  After the user selects the answer, we wanted to make sure the variable Answer is cleared.  The following example will perform this task.  

RX Script Copy Code
Clear Last Answer

Example 2

When initiating a new session, we want to initialize certain data records prior to processing spins.  The data records that we will be initializing are: pattern and total count.  The following example will perform this task.

RX Script Copy Code
While Starting a New Session
begin
  Clear Record "pattern" layout
  Clear Record "total count" data
end

Results from Example 2

Example 3

When initiating a new session, we want to quickly initialize all data records prior to processing spins.  The following example will perform this task.

RX Script Copy Code
Clear All Records

Copyright © 2003 UX Software. All rights reserved