Home How To Online Documentation Support Download Order

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric

Enums and Typedefs

  

Usage

Class Members

Examples

SAValueRead::asDateTime

SADateTime asDateTime( ) const;
throw (SAException);

operator SADateTime( ) const;
throw (SAException);

asDateTime method returns the value of current object (usually SAField or SAParam object) as SADateTime data.

operator SADateTime() substitute asDateTime method to provide quick access for object's value.

Remarks

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

If the value's type of current object is SA_dtDateTime, asDateTime method returns SADateTime object.

If the value's type of current object is any data type except SA_dtDateTime, 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, asString, asBytes, asLongBinary, asLongChar, asBLob, asCLob, asCursor, DataType

SADateTime

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.