Home How To Online Documentation Support Download Order
 

 

 

 

SACommand
SAConnection
SAException
SAField
SAParam

SAString
SADateTime
SANumeric

Enums and Typedefs

  

Usage

Class Members

Examples

SAValueRead::asBLob

SAString  asBLob( ) const;
throw (SAException);

Returns the value of current object (usually SAField or SAParam object) as BLob (SAString) data.

Remarks

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

If the value's type of current object is string (SA_dtString), bytes (SA_dtBytes), long binary (SA_dtLongBinary), long character (SA_dtLongChar), BLob (SA_dtBLob) or CLob (SA_dtCLob), asBLob method returns the object's value as SAString object.

If the value's type of current object is bool (SA_dtBool ), short (SA_dtShort), long (SA_dtLong), double (SA_dtDouble), numeric (SA_dtNumeric), date-time (SA_dtDateTime) or cursor (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, asShortasLongasDouble, asNumeric, asDateTime, asString, asBytes, asLongBinary, asLongChar, asCLob, asCursor, DataType

SAString

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.