DesignForms
TCustomLibraryDataTable Class Reference

CustomLibrary DataTable More...

Inherits DataTable.

Public Member Functions

 TCustomLibraryDataTable (string FileName)
 Constructor More...
 
TCustomLibraryDataTable Convert ()
 Convert all values in the table from the string to the number with respect to the units of each column. All numbers are stored in basic (SI) units More...
 
TStructure GetStructure (DataRow Row)
 Convert values from the given row of the table. Values are converted from the string to the number with respect to the units of each column. All numbers are stored in basic (SI) units More...
 
new object Select (string ItemName, string Symbol)
 Finds the first row whose "Item" is equal to parameter 'ItemName' and returns its property defined by parameter 'Symbol' More...
 

Detailed Description

CustomLibrary DataTable

Constructor & Destructor Documentation

TCustomLibraryDataTable ( string  FileName)

Constructor

Parameters
FileNameReelative path to the source file. Source file must be located it CustomLibrary data folder.

Member Function Documentation

Convert all values in the table from the string to the number with respect to the units of each column. All numbers are stored in basic (SI) units

Returns
TStructure GetStructure ( DataRow  Row)

Convert values from the given row of the table. Values are converted from the string to the number with respect to the units of each column. All numbers are stored in basic (SI) units

Parameters
RowRow to be converted
Returns
Structured variable with converted values in basic (SI) units
new object Select ( string  ItemName,
string  Symbol 
)

Finds the first row whose "Item" is equal to parameter 'ItemName' and returns its property defined by parameter 'Symbol'

Parameters
ItemNameValue of the "Item" property, according to which the row of the table is found.
SymbolName of the property to be returned as a result
Returns
The value of the property 'Symbol' from the DataRow whose "Item" equals to 'ItemName'