Reset Method (REGEX)
The Reset method is used to reset the associated PL/B REGEX object. This method uses the following format:
|
|
|
|
Where:
label
Optional. A Program Execution Label.
object
Required. A REGEX object previously declared.
return
Optional. A Numeric Variable that returns a success or fail value.
Flags Affected: EOS, OVER, ZERO
Notes:
If the value returned is zero, the ZERO Condition Flag is set.
The OVER flag is set TRUE if the 'return' variable is too small and cannot contain the 'return' value without being truncated. Otherwise, the OVER flag is set to FALSE.
The EOS flag is always cleared.
The method clears the compiled pattern, and clears the last-match cache.
The {return} value is one when the reset is successfully and zero when the reset failed .
Example 1:
See Also: Method Syntax,REGEX
![]() |