<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Apollo VCL Component Reference > TApolloTable > TApolloTable Methods > GetString |
Declaration
function GetString( sFieldName: String ): String;
Description
Extracts the contents of any field as a string value.
Note that DBF data is stored in a fixed length record in character format. Any field data (including numeric and date fields can therefore be extracted as a string.
Parameters
sFieldName: The name of the field.
Return Value
The field contents are returned as a string.
Delphi Example
// Read first and last names into string variables
sFirst := ApTbl.GetString( 'FIRST' );
sLast := ApTbl.GetString( 'LAST' );
C++Builder Example
// Read first and last names into string variables
sFirst = ApTbl->GetString( "FIRST" );
sLast = ApTbl->GetString( "LAST" );
See Also
GetStringEx, GetTrimString, GetBinary, GetBlob
GetTrimString