:Revision=2
:html
<<
128.124
TypeList-Object|TypeList
$NoSort
--
The IP-Object <!RW>TypeList gives access to all the data in the type list.

The access is made by records (by type). The typelist can be read row by row or a certain typecode can be searched.

Example:
<!CODE>
TypeList.First;
while not TypeList.EOF do begin
  Debug.Show (1, TypeList.TypeCode);
  TypeList.Next;
end;
TypeList.Select ('');
<!TXT>
>>

<<
128.124.1
Functions of the TypeList-Object|Functions
--
>>

<<
128.124.1.1
TypeList.Exists|Exists
---
<!DEF>
function <!TW>TypeList.Exists (sCode : string) : real;
<!TXT>
Returns <!RW>True, if a there is a type with the specified type code.

Does not select the types!
>>

<<
128.124.1.2
TypeList.EOF|EOF
---
<!DEF>
function <!TW>TypeList.EOF : real;
<!TXT>
Returns <!RW>True, if the end of the table was reached with the last <!RW>TypeList.Next or if no type was found with <!RW>Typelist.Select.
>>

<<
128.124.1.3
TypeList.TypeFamily|TypeFamily
---
<!DEF>
function <!TW>TypeList.TypeFamily : string;
<!TXT>
Returns the type family of the type, which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.4
TypeList.TypeInfo|TypeInfo
---
<!DEF>
function <!TW>TypeList.TypeInfo : string;
<!TXT>
Returns the type information of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.5
TypeList.TypeCode|TypeCode
---
<!DEF>
function <!TW>TypeList.TypeCode : string;
<!TXT>
Returns the type code of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.6
TypeList.TestNr|TestNr
---
<!DEF>
function <!TW>TypeList.TestNr : real;
<!TXT>
Returns the test sequence number of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.7
TypeList.Adapter|Adapter
---
<!DEF>
function <!TW>TypeList.Adapter : real;
<!TXT>
Returns the adapter code of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.8
TypeList.ContactColumns|ContactColumns
---
<!DEF>
function <!TW>TypeList.ContactColumns : real;
<!TXT>
Returns the number of contact positions of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.9
TypeList.TestRows|TestRows
---
<!DEF>
function <!TW>TypeList.TestRows : real;
<!TXT>
Returns the number of test positions of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.10
TypeList.BarCodeMode|BarCodeMode
---
<!DEF>
function <!TW>TypeList.BarCodeMode : real;
<!TXT>
Returns the barcode-mode of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>


<<
128.124.1.11
TypeList.IsActive|IsActive
---
<!DEF>
function <!TW>TypeList.IsActive : real;
<!TXT>
Returns <!RW>TRUE if the currently selected type is active.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.12
TypeList.Field|Field
---
<!DEF>
function <!TW>TypeList.Field (sField : string) : string;
<!TXT>
Returns the value of the user defined type-data-field <!PW>sField of the type which is currently selected.

If the field does not exist, a runtime error is generated.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>
<<
128.124.1.10
TypeList.Field.Exists|Field.exists
--
<!DEF>
function <!TW>TypeList.Field.Exists (sField : real) : real;
<!TXT>
Returns <!RW>TRUE, if the user defined type-data-field <!PW>sField exists.
>>

<<
128.124.1.11
TypeList.GetTestPosXY|GetTestPosXY
--
<!DEF>
function <!TW>TypeList.GetTestPosXY (rX, rY : real) : real;
<!TXT>
Returns the test position, for the layout - coordinates in <!PW>rX and <!PW>rY of the type which is currently selected. If this position is empty the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.12
TypeList.GetContactPosXY|GetContactPosXY
--
<!DEF>
function <!TW>TypeList.GetContactPosXY (rX, rY : real) : real;
<!TXT>
Returns the contact position, for the layout - coordinates in <!PW>rX and <!PW>rY of the type which is currently selected. If this position is empty the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.13
TypeList.GetDUTNrXY|GetDUTNrXY
--
<!DEF>
function <!TW>TypeList.GetDUTNrXY (rX, rY : real) : real;
<!TXT>
Returns the DUT number for the layout - coordinates in <!PW>rX and <!PW>rY of the type which is currently selected. If this position is empty the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.14
TypeList.GetMODNrXY|GetMODNrXY
--
<!DEF>
function <!TW>TypeList.GetModNrXY (rX, rY : real) : real;
<!TXT>
Returns the modul number, for the layout - coordinates in <!PW>rX and <!PW>rY of the type which is currently selected. If this position is empty or no modul number assigned the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.15
TypeList.GetXSize|GetXSize
--
<!DEF>
function <!TW>TypeList.GetXSize : real;
<!TXT>
Returns the maximum Y coordinate - for the layout of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.16
TypeList.GetYSize|GetYSize
--
<!DEF>
function <!TW>TypeList.GetYSize : real;
<!TXT>
Returns the maximum Y coordinate - for the layout of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.17
TypeList.GetXPosKT|GetXPosKT
--
<!DEF>
function <!TW>TypeList.GetXPosKT (rKtk, rTst : real) : real;
<!TXT>
Returns the X - position in the layout for the contact position in <!PW>rKtk and the test position in <!PW>rTst of the type which is currently selected. If this position is empty the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.18
TypeList.GetYPosKT|GetYPosKT
--
<!DEF>
function <!TW>TypeList.GetYPosKT (rKtk, rTst : real) : real;
<!TXT>
Returns the Y - position in the layout for the contact position in <!PW>rKtk and the test position in <!PW>rTst of the type which is currently selected. If this position is empty the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.19
TypeList.GetDUTNrKT|GetDUTNrKT
--
<!DEF>
function <!TW>TypeList.GetDUTNrKT (rKtk, rTst : real) : real;
<!TXT>
Returns the DUT - number for the contact position in <!PW>rKtk and the test position in <!PW>rTst of the type which is currently selected. If this position is empty the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.20
TypeList.GetMODNrKT|GetMODNrKT
--
<!DEF>
function <!TW>TypeList.GetMODNrKT (rKtk, rTst : real) : real;
<!TXT>
Returns the modul - number for the contact position in <!PW>rKtk and the test position in <!PW>rTst of the type which is currently selected. If this position is empty or no modul number is assigned the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.21
TypeList.GetXPosDUT|GetXPosDUT
--
<!DEF>
function <!TW>TypeList.GetXPosDUT (rDUT : real) : real;
<!TXT>
Returns the X - position in the layout for the DUT - number in <!PW>rDUT of the type which is currently selected. If this DUT - number is not assigned the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.22
TypeList.GetYPosDUT|GetYPosDUT
--
<!DEF>
function <!TW>TypeList.GetYPosDUT (rDUT : real) : real;
<!TXT>
Returns the Y - position in the layout for the DUT - number in <!PW>rDUT of the type which is currently selected. If this DUT - number is not assigned the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.23
TypeList.GetContactPosDUT|GetContactPosDUT
--
<!DEF>
function <!TW>TypeList.GetContactPosDUT (rDUT : real) : real;
<!TXT>
Returns the contact position for the DUT - number in <!PW>rDUT of the type which is currently selected. If this DUT - number is not assigned the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.24
TypeList.GetTestPosDUT|GetTestPosDUT
--
<!DEF>
function <!TW>TypeList.GetTestPosDUT (rDUT : real) : real;
<!TXT>
Returns the test position for the DUT - number in <!PW>rDUT of the type which is currently selected. If this DUT - number is not assigned the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.25
TypeList.GetModNrDUT|GetModNrDUT
--
<!DEF>
function <!TW>TypeList.GetModNrDUT (rDUT : real) : real;
<!TXT>
Returns the modul - number for the DUT - number in <!PW>rDUT of the type which is currently selected. If this DUT - number is not assigned the return value is -1.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.26
TypeList.ECStart|ECStart
---
<!DEF>
function <!TW>TypeList.ECStart : string;
<!TXT>
Returns the start value from the EC code range of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>

<<
128.124.1.27
TypeList.ECStop|ECStop
---
<!DEF>
function <!TW>TypeList.ECStop : string;
<!TXT>
Returns the end value from the EC code range of the type which is currently selected.

Selected means that, in the relation to the TypeList-IP-Object, the type is selected as current type. This has nothing to do with the types that are actually loaded at the moment!
>>


<<
128.124.2
Procedures of the TypeList-Object|Procedures
--
>>

<<
128.124.2.1
TypeList.Select|Select
---
<!DEF>
procedure <!TW>TypeList.Select (sTypeCode : string);
<!TXT>
Selects the type which matches the code <!PW>stypeCode.

If none of the types match then the currently loading type is selected and EOF true.

So:
<!CODE>
TypeList.Select (sTypeCode);
if TypeList.EOF then begin
  // not found
end
else begin
  // found
end;
<!TXT>

The call:
<!CODE>
TypeList.Select('');
<!TXT>
can be used to select the currently loaded and active type, since am empty type code is not allowed and no type will match.
>>

<<
128.124.2.2
TypeList.First|First
--
<!DEF>
procedure <!TW>TypeList.First;
<!TXT>
Selects the first type from the type list.
>>
<<
128.124.2.3
TypeList.Next|Next
--
<!DEF>
procedure <!TW>TypeList.Next;
<!TXT>
Selects the next type from the type list.

If there is no further type the current type is selected and EOF is set to <!RW>TRUE.
>>
