Home How To Online Documentation Support Download Order

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric

Enums and Typedefs

  

Usage

Class Members

Examples

SAValueRead::asCursor

SACommand *asCursor( ) const;
throw (SAException);

operator SACommand *( ) const;
throw (SAException);

asCursor method returns the value of current object (usually SAField or SAParam object) as a pointer to SACommand object.

operator SACommand *() substitute asCursor method to provide quick access for object's value.

Remarks

If the value of current object is NULL, asCursor method returns NULL. Use SAValueRead::isNull method to make sure if the value is NULL or not.

If the value's type of current object is cursor (SA_dtCursor), asCursor method returns a pointer to SACommand object.

If the value's type of current object is any data type except SA_dtCursor, the result is undefined and debug version asserts.

Use SAValueRead::DataType method to get the value's type of SAValueRead object.

Server specific notes

No specific information.

See also

isNull, asBool, asShort, asLong, asDouble, asNumeric, asDateTime, asString, asBytes, asLongBinary, asLongChar, asBLob, asCLob, DataType

SACommand

SADataType_t

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.