V4MD : still confuse about picture field

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Oct 30 12:37:28 CST 2003


on 10/30/03 12:20, Ricky at ricky at babonmultimedia.com wrote:

> 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

    AddRecord( vc )

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


You have forget call AddRecord() function.

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