Reset (reset the object to the beginning of the constant data)

Top  Previous  Next

 

Reset

The Reset method resets internal counters to start processing constant data from the beginning.

Implementation:

The Set, Next(FILE) and Next(QUEUE) methods call the Reset method. Typically you will not call this method.

Example:

ConstantClass.Set PROCEDURE(*STRING Src)

CODE

DISPOSE(SELF.Str)

SELF.Str &= NEW STRING(LEN(Src))

SELF.Str = Src

SELF.SourceSize=LEN(SELF.Str)

SELF.Reset