Initializing help system before first use

set_reversible_attributes

Purpose
Sets the attributes of a reversible number or array.
Synopsis
procedure set_reversible_attributes(revarray:cpreversiblearray, first:integer, last:integer, initValue:integer)
procedure set_reversible_attributes(rev:cpreversible, initValue:real)
Arguments
revarray 
a reversible array
first 
the smallest index number
last 
the highest index number
rev 
a reversible number
initValue 
the initialization value
Example
The following example shows how to set the attributes of a reversible array :
declarations
  reva: cpreversiblearray
end-declarations

! Create a reversible array of 10 elements initialized with value 0
set_reversible_attributes(reva, 1, 10, 0)

! Return the number of elements in the reversible array
writeln("Array contains ", getsize(reva), " elements")

! Get the 5'th element of the array
writeln("The 5'th element of reva is ", getelt(reva,5))
Related topics

© 2001-2024 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.