<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods > GetByte |
Declaration
function GetByte( sFieldName: String ): Char;
Description
Extracts the first character of a field.
Parameters
sFieldName: The name of the field.
Return Value
The character is returned as a string.
Delphi Example
// Set serial format depending on product type
if ApTbl.GetByte( 'PRODUCT' ) = 'H' then
sSerialPrefix := 'HIPER';
C++Builder Example
// Set serial format depending on product type
if (ApTbl->GetByte( "PRODUCT" ) == "H")
sSerialPrefix = "HIPER";
See Also