V4RB... getting vBlob field

Ruslan Zasukhin sunshine at public.kherson.ua
Tue Nov 4 21:45:00 CST 2003


on 11/4/03 21:03, Aaron Bratcher at aaronbratcher at abdatatools.com wrote:

Hi Aaron,

> I am trying to typecast a vField into a vBlob.  However simply trying
> to get the field from the baseObject is always returning nil and Im not
> sure why.
> 
> Here is the field definition as I create the database:
>  newField = bo.CreateField("note",kV_TypeBLOB) // newField is type
> vField
> 
> When I try to get the field, I have a variable of type vBlob. (bo is my
> base object properly obtained from the database)
> 
>      blobField = vBlob(bo.field(fieldName)) //fieldName is confirmed
> to contain "note"  I even tried hard-lining "note"

Try this way:    

      Field = bo.field(fieldName)
      blobField = vBlob(field)
    
Field is not NULL ?


I have check sources and I do not see bugs. All right.

So I small need project to reproduce

> This is ALWAYS returning a nil.  Any ideas?  It's been a while since I
> tried programming to a valentina db like this.

-- 
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