Page 1 of 1

How to assign a CLOB object attribute?

Posted: Wed 12 Mar 2008 06:22
by rmovchan
Hello

I'm trying to work with objects that have CLOB attributes. TOraObject class doesn't provide a method to set an attribute as LOB (the property is read-only). I tried to use AttrAsLob[...].Assign method, but it doesn't mark the attribute as not-null. So the attribute remains null even after I assign a value to it. Is there a way to to it? I'm using ODAC 5.80.

Thanks

Posted: Wed 26 Mar 2008 10:26
by Plash
AttrAsLob property returns TOraLob object. You can use AsString property, Assign, Write, LoadFromSream, LoadFromFile methods of TOraLob to assign a value to it.

You can assign False to AttrAsNull property to mark the attribute as NOT NULL.