Platforms to show: All Mac Windows Linux Cross-Platform

Back to SQLValueMBS class.

Next items

SQLValueMBS.Constructor(DataType as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Creates a new empty value object with the given data type.

SQLValueMBS.setAsBlob(data as MemoryBlock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as BLob data using a memoryblock.

See also:

SQLValueMBS.setAsBlob(data as SQLDataProviderMBS, BlockSize as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as BLob data (SQLString)

When you call the SQLCommandMBS.Execute method all input parameters are bound with their values, including Long and BLob(CLob) parameters.
That is the time when the data provider Read event runs to get the values in the block size you specify.

The default value for the block size is 0. If you use the default value, SQLAPI++ Library will automatically use the most appropriate size for current DBMS.

See also:

SQLValueMBS.setAsBlob(data as SQLStringMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as BLob data (SQLString)

See also:

SQLValueMBS.setAsBlob(data as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as BLob data (SQLString)
Example
dim c as SQLCommandMBS // your command object
dim JPEGData as string // some data

c.Param("imageData").setAsBlob JPEGData

See also:

SQLValueMBS.setAsBlob(file as folderItem)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets field with content of file.
Example
dim cmd as SQLCommandMBS // your command object

// pass folderitem to BLOB field
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
cmd.Param("image").setAsBlob(f)

The file will be read later when statement is executed.
May not work when using preemptive threads.

See also:

SQLValueMBS.setAsBlob(stream as Readable)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets field with content of stream.
Example
dim cmd as SQLCommandMBS // your command object

// pass BinaryStream to BLOB field
dim f as FolderItem = SpecialFolder.Desktop.Child("test.jpg")
dim b as BinaryStream = BinaryStream.open(f)
cmd.Param("image").setAsBlob(b)

The stream will be read later when statement is executed.
May not work when using preemptive threads.

See also:

SQLValueMBS.setAsBool(value as boolean)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as bool data.

SQLValueMBS.setAsBytes(data as MemoryBlock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as binary data from memoryblock.

See also:

SQLValueMBS.setAsBytes(data as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 14.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set the value to be bytes with content of given string.

For BLOB fields or parameters.
Same as the other variant, but avoids creating extra SQLStringMBS object.

See also:

SQLValueMBS.setAsBytes(value as SQLBytesMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Set the value to be bytes with content of given Bytes object.

For BLOB fields or parameters.
Same as the other variant, but avoids creating extra SQLStringMBS object.

See also:

SQLValueMBS.setAsBytes(value as SQLStringMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as binary string data (SQLString).

See also:

SQLValueMBS.setAsClob(data as MemoryBlock)   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Private method.

This method should make sure you don't accidentally a memoryblock instead of a text.

See also:

SQLValueMBS.setAsClob(data as SQLDataProviderMBS, BlockSize as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as CLob data (SQLString)

nWhen you call the SQLCommandMBS.Execute method all input parameters are bound with their values, including Long and BLob(CLob) parameters.
That is the time when the data provider Read event runs to get the values in the block size you specify.

The default value for the block size is 0. If you use the default value, SQLAPI++ Library will automatically use the most appropriate size for current DBMS.

See also:

SQLValueMBS.setAsClob(file as folderItem)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets field with content of file.

The file will be read later when statement is executed.
May not work when using preemptive threads.

See also:

SQLValueMBS.setAsClob(stream as Readable)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets field with content of stream.

The stream will be read later when statement is executed.
May not work when using preemptive threads.

See also:

SQLValueMBS.setAsClob(text as SQLStringMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as CLob data (SQLString)

See also:

SQLValueMBS.setAsClob(text as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as CLob data (SQLString)

See also:

SQLValueMBS.setAsDate(value as date)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 11.2 ✅ Yes ✅ Yes ✅ Yes ❌ No Desktop, Console & Web
Sets parameter's value with a date.
Example
dim cmd as SQLCommandMBS // your command object
dim d as new date(2012,12,24,16,0,0) // some date
cmd.Param(3).setAsDate(d) // set third parameter

Same as setAsDateTime, but here we take a date object to make it more convenient.

SQLValueMBS.setAsDateTime(value as dateTime)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 20.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value with a dateTime.

Same as setAsDate, but here we take a dateTime object to make it more convenient.

See also:

SQLValueMBS.setAsDateTime(value as SQLDateTimeMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as SQLDateTime data.

See also:

SQLValueMBS.setAsDefault

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Forces to use the default parameter's value.

Forces DBMS API to use the default parameter value as the input value for an input or input/output parameter in a procedure.

If DBMS API does not support the concept of "default parameter values" in stored procedures, this setting will be ignored.

If you set this flag for the parameter that doesn't have a default value, the effect is DBMS defined (e.g. an error can be returned or NULL can be bound).

To cancel using the default parameter value you should call any other SQLValue::setAs... method to bind a parameter value.

To check whether this flag is set or not use isDefault method.

SQLValueMBS.setAsDouble(value as Double)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as Double data.

SQLValueMBS.setAsInt32(value as Int32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 19.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as Int32 data.

SQLValueMBS.setAsInt64(value as Int64)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 19.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as Int64 data.

SQLValueMBS.setAsInteger(value as Integer)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 19.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as Integer data.

Int32 or Int64 depending whether app is 32 or 64 bit.

SQLValueMBS.setAsInterval(value as SQLIntervalMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets an interval value.

SQLValueMBS.setAsLong(value as Int32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as Int32 data.

SQLValueMBS.setAsLongBinary(data as MemoryBlock)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as long binary data from memoryblock.

See also:

SQLValueMBS.setAsLongBinary(data as SQLDataProviderMBS, BlockSize as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as long binary data (SQLString)

When you call the SQLCommandMBS.Execute method all input parameters are bound with their values, including Long and BLob(CLob) parameters.
That is the time when the data provider Read event runs to get the values in the block size you specify.

The default value for the block size is 0. If you use the default value, SQLAPI++ Library will automatically use the most appropriate size for current DBMS.

See also:

SQLValueMBS.setAsLongBinary(file as folderItem)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets field with content of file.

The file will be read later when statement is executed.
May not work when using preemptive threads.

See also:

SQLValueMBS.setAsLongBinary(stream as Readable)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets field with content of stream.

The stream will be read later when statement is executed.
May not work when using preemptive threads.

See also:

SQLValueMBS.setAsLongChar(data as MemoryBlock)   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Private method.

This method should make sure you don't accidentally a memoryblock instead of a text.

See also:

SQLValueMBS.setAsLongChar(data as SQLDataProviderMBS, BlockSize as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as long character data (SQLString)

When you call the SQLCommandMBS.Execute method all input parameters are bound with their values, including Long and BLob(CLob) parameters.
That is the time when the data provider Read event runs to get the values in the block size you specify.

The default value for the block size is 0. If you use the default value, SQLAPI++ Library will automatically use the most appropriate size for current DBMS.

See also:

SQLValueMBS.setAsLongChar(file as folderItem)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets field with content of file.

The file will be read later when statement is executed.
May not work when using preemptive threads.

See also:

SQLValueMBS.setAsLongChar(stream as Readable)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets field with content of stream.

The stream will be read later when statement is executed.
May not work when using preemptive threads.

See also:

SQLValueMBS.setAsLongChar(text as SQLStringMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as long character data (SQLString)

See also:

SQLValueMBS.setAsLongChar(text as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as long character data (SQLString)

See also:

SQLValueMBS.setAsNull

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets value to null.

SQLValueMBS.setAsNumeric(value as SQLNumericMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as SQLNumeric data.

SQLValueMBS.setAsShort(value as Int16)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as short data.

SQLValueMBS.setAsString(data as MemoryBlock)   Private

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 16.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Private method.

This method should make sure you don't accidentally a memoryblock instead of a text.

See also:

SQLValueMBS.setAsString(value as SQLStringMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as character string data (SQLString)

See also:

SQLValueMBS.setAsString(value as string)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as character string data.

Same as setAsString, but for your convenience with a Xojo string instead of a SQLStringMBS object.

See also:

SQLValueMBS.setAsUInt32(value as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 19.2 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as UInt32 data.

SQLValueMBS.setAsULong(value as UInt32)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's value as unsigned long data.

SQLValueMBS.setAsUnknown

Type Topic Plugin Version macOS Windows Linux iOS Targets
method SQL MBS SQL Plugin 9.3 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Sets parameter's type as unknown.

Next items

The items on this page are in the following plugins: MBS SQL Plugin.


The biggest plugin in space...