Import pictures

Ruslan Zasukhin sunshine at public.kherson.ua
Thu Nov 20 09:53:55 CST 2003


on 11/20/03 8:19 AM, richard z at ximcom at hotmail.com wrote:

Hi Richard,

> If I use the import picture command and then the import text command with
> for example ten records each the vdb file will end up with
> with first ten records with pictures (without any text in the text fields),
> and then ten records with the information from the backup.txt file
> in text fields (without any pictures in the image field).
> 
> This means that I´ll get the double amount of records from what I want and
> no text TOGETHER with picture. The meaning is of course that each picture
> should be placed with the belonging text field.

This is because in both cases you have ask Valentina do ADD RECORD.

> May I please get some help to modify the "dbAddpictures":-command above so
> that the inserting of pictures can be done at the right place in the vdb
> file.

You need 

1) import from txt file. Now you have 10 records.

2) you make now loop on this 10 records,
    for picture field assign picture value,
    and you do cursor.Update()
                    ^^^^^^^^^^

So you will have the same 10 records


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