RPC HELP Mult Position

From VistApedia
Revision as of 23:25, 3 July 2015 by Kdtop (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

RPC Broker Help Home

Position Method

Back

Example

Applies to

TMult Class

Declaration

   function Position(const Subscript: string): longint;

Description

The Position method takes the string subscript of an item in a TMult variable and returns its numeric index position much like a TStringList’s IndexOf method. Because TMult uses a TStringList internally, the IndexOf method is used to implement the Position method. The first position in the TMult is 0. If TMult is empty, or the Subscript does not identify an existing item, Position returns -1.

The Position and Subscript methods are the reciprocals of each other.

NOTE: See RPC Limits for information about the size of parameters and results that can be passed to and returned from the TMult class.