FW: Import pictures
Ruslan Zasukhin
sunshine at public.kherson.ua
Tue Nov 25 18:24:02 CST 2003
------ Forwarded Message
> From: "richard z" <ximcom at hotmail.com>
> Date: Tue, 25 Nov 2003 17:18:41 +0100
> To: ruslan at paradigmasoft.com
> Subject: Re: Import pictures
>
> Hi all,
>
> I am working with Valentina and Director and I have a problem with importing
> a couple of thousand pictures into my vdb file.
>
>
> In this sample I have imported 10 records with text from a txt file into a
> vdb file using this script:
> ----------------------------------------------------
> "dbImport":
>
> if ValidCursor(gCursor) then
> ImportASCII( gCursor, "backup.txt", TAB, RETURN )
> end if
> ----------------------------------------------------
>
> So, when I got the text inside the vdb file and I want to add pictures into
> the same vdb file the problem begins.
>
> What I am trying to do is to add 10 different pictures (all at the same
> time) and one picture to each text record using this script:
> ----------------------------------------------------
> "dbAddpictures":
>
> set count to 1
> repeat while count <= 10
> set c = String(count)
> set the filename of member "fimage" to the moviePath& "Pictures\" &
> count & ".jpg"
> setPicture( gCursor, "Image", member "fImage" )
> updaterecord (gcursor)
> put c into field "dbGoToRecord"
> set count = count+1
> end repeat
> ----------------------------------------------------
>
> The 10 pictures in my Pictures folder are named from 1.jpg to 10.jpg and the
> result I get is that only one and the same picture is added to all 10
> records (only the last picture is added - 10.jpg).
>
> How can this script be changed so that all the pictures will be added
> correctly?
>
> Please help.
>
> Best regards,
> Richard
------ End of Forwarded Message
More information about the Valentina
mailing list