Difference between revisions of "RPC HELP Mult Position"

From VistApedia
Jump to: navigation, search
(Created page with " RPC Broker Help Home <h2>Position Method</h2> Back <h3>Applies to</h3> TMult Class <h3>Declaration</h3> ...")
 
 
Line 1: Line 1:
 
[[RPC_Broker_Help| RPC Broker Help Home]]
 
[[RPC_Broker_Help| RPC Broker Help Home]]
 
<h2>Position Method</h2>
 
<h2>Position Method</h2>
 +
[[RPC_HELP_Mult_Position|Back]]
  
[[RPC_HELP_Mult_Position|Back]]
+
[[RPC_HELP_TMult_Position_Example|Example]]
  
 
<h3>Applies to</h3>
 
<h3>Applies to</h3>

Latest revision as of 23:25, 3 July 2015

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.