[V4RB-VServer] can't work with pictures

Eric Ferrer wonderfef at noos.fr
Thu Jun 9 13:13:51 CDT 2005


Hello all,

This is the first time I'm dealing with pictures and Valentina.
I'm still using Valentina Server beta, because V2 is too buggy for  
now and I can't upgrade.

I need to store a picture in two different VPicture fields : the full  
picture itself and a thumb copy.

When I call "cursor.AddRecord", I have a 1009 error.
Moreover, in the ValentinaServer's log file I can read :
CURSOR(0x12D6EC0): Field index is too large!
ERROR #1009: Invalid identifier

What's wrong?

Here is how my blank database is made :
   if theDatabase.Create(f, 5, 32 * 1024) = false then
     Return false
   end if

   dim vbo as VBaseObject
   vbo = theDatabase.CreateBaseObject("Pictures")

   call vbo.CreateVarCharField("ID", 30, "", "")
   call vbo.CreatePictureField("Thumb", 2 * 1024)
   vbo.Field("pixThumb").Nullable = true
   call vbo.CreatePictureField("Picture", 2 * 1024)
   vbo.Field("pixPicture").Nullable = true
   call vbo.CreateVarCharField("Name", 256, "French", "")
   Return true

Thanks all for your help!
Eric


More information about the Valentina mailing list