Home How To Online Documentation Support Download Order
 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric
SAInterval

Enums and Typedefs

  

Usage

Class Members

Examples

SACommand::Field

SAField &Field( int nField );

SAField &Field( const SAString &sField );
throw (SAException);

Returns the column specified by its position or name in the result set.

Parameters

nField .    A one-based field number in a result set.

sField.    A string that represents a name of the requested field.

Return value

A reference to a SAField object.

Remarks

Use Field method to access a field by its name or position in the result set.

In Syntax 1 using nFieldvalue smaller than 1 and greater then the value returned by FieldCount method will result in a failed assertion.

In Syntax 2 using a non-existent field name will throw an exception.

A set of SAField objects creates implicitly after the command execution if the result set exists.SAField object contains full information about a column: name, type, size, value. SAField object  can also be gotten by operator [ ] .

Server specific notes

No specific information.

See also

FieldCount, operator [ ]

SAField

Error handling

Problems and Questions

If you haven't found the answer to your questions or have some problems on using the Library, please, send e-mail to howto@sqlapi.com.