TUNBPages.Put procedure
Ensures that the index value is valid before accessing the TPage object.
Declaration
procedure Put(Index: Integer; const S: string); overrideArguments
Index | Ordinal position for the page object updated in the method. |
S | Name stored in the requested page object. |
Description
Put is overridden in
TUNBPages to set the name for the
page object at the specified position. Put ensures that the value in Index is
valid. Index must contain a value in the range 0 to the number of defined
pages - 1. An exception is raised when Index contains an invalid value.
Put sets the name in the TPage object at the specified position to
the value in S.
Errors
Calls
RaiseGDBException with the exception message 'TUNBPages.Put
Index out of bounds' when Index contains an invalid value.
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
