<< Click to Display Table of Contents >> Navigation: Apollo VCL Components > Installing and Using Apollo VCL > Updating Records |
In replacing multiple (or all) fields within a record, it would be faster to replace the entire record buffer using PutRecord, rather than using a series of Replace calls. Likewise, a single call to ApolloGetRecord can be used to read in the entire record buffer, rather than making multiple calls to GetString and/or other related Get* methods.
If you use GetString (and/or other similar functions) you could increase the data access speed through direct calls of such functions with characterized field index instead of legal xBase field name.
For example:
GetString( 'FNAME' ); // Field #1
GetString( 'LNAME' ); // Field #2
Can be:
GetString( '1' ); // relates to FNAME
GetString( '2' ); // relates to LNAME