RPC HELP Mult Position

From VistApedia
Revision as of 23:24, 3 July 2015 by Kdtop (talk | contribs) (Created page with " RPC Broker Help Home <h2>Position Method</h2> Back <h3>Applies to</h3> TMult Class <h3>Declaration</h3> ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

RPC Broker Help Home

Position Method

Back

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.