VPicture and testing for no data

Ruslan Zasukhin sunshine at public.kherson.ua
Sat Aug 30 08:47:32 CDT 2003


on 8/29/03 9:41 PM, Chuck at rwc1717 at shaw.ca wrote:

Hi chuck,

> Hi Ruslan:
> I am writing these individually so as the subject line will reflect the topic.
> 
> I was using your VPicture field to store data, however I had to revert to a
> VBlob field.  When the VPicture field is empty and I go to retrieve it using
> GetFormattedPict()...RB crashes.
 
> If I use a VBlob field with no data in it, I can test for nothing...without
> crashing the RB.

But you can do the same for Picture field!
Because it is inherited from BLOB.

Before you read data you can do

    a) if GetDataSize() <> 0
            read it

    b) if PictFld.IsNull() = false
            read it

-- 
Best regards,
Ruslan Zasukhin      [ I feel the need...the need for speed ]
-------------------------------------------------------------
e-mail: ruslan at paradigmasoft.com
web: http://www.paradigmasoft.com

To subscribe to the Valentina mail list go to:
http://lists.macserve.net/mailman/listinfo/valentina
-------------------------------------------------------------



More information about the Valentina mailing list