V4MD : still confuse about picture field

Ricky ricky at babonmultimedia.com
Thu Oct 30 18:20:56 CST 2003


Hello again,

i'm sorry my question still the same because this is very important for my
application
i try to use valentina's function itself to write the picture

so here they script:

on insertpicture
  global db
  set vc = new( Xtra "VCursor",GetRef(db),"SELECT fd_Code,fd_Image FROM
rdInventory ORDER BY fd_Code ASC",1,3,2)
  set RecCount = GetRecordCount(vc)
  repeat with i = 1 to RecCount
    set fd_Code = GetField(vc,1 )
    if member(fd_Code,2).name <> "" then
      Setpicture(vc,"fd_Image",member fd_Code of CastLib "bulkimages",40)
    end if
    nextrecord(vc)
  end repeat
end insertpicture

the result is good, no error, the file is increasing the size until 7Mb. ok,
then i try to check the picture in all record using:

check = Getpicture(vc,"fd_Image")
alert check

then the check variable is always none (blank)

so where is all the pictures that have been stored?


please help me how to get the picture or i still have error when i set the
picture..
it is very wonderful if you send me an example of succesfull script  so i
can learn by my self

Thanks A Bunch
Ricky





More information about the Valentina mailing list