iView home page
iView Multimedia Forum Index

FAQ FAQ     SearchSearch     MemberlistMemberlist     UsergroupsUsergroups    RegisterRegister  
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Import more than once?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    iView Multimedia Forum Index -> VB Script
View previous topic :: View next topic  
Author Message
blueman541



Joined: 21 Dec 2005
Posts: 23

PostPosted: Mon Nov 20, 2006 7:44 pm    Post subject: Import more than once? Reply with quote

iMatch exports its catalog into a text file.
I am trying to import that into iView

I import using:
Code:
set mediaItem = cat.Import(filename)


I then add it to a catalog set:
Code:
mySet.Add(mediaItem)


So how do i later add again the filename into a different catalog set?

iMatch catalog allow an image file to be part of multiple catalogs, so am parsing the text file line by line. If i try to import the file again, iView won't do it and i will get a runtime error when i try assign it to a catalog set.

Hope im not too confusing.

iMatch text out goes something like this

[Xmas photo]
file://C:/image1.jpg .....
file://C:/image2.jpg .....

[My photo]
file://C:/image1.jpg .....

[More Photo]
file://C:/image2.jpg ...
file://C:/image4.jpg ...

... and so on.
Back to top
View user's profile Send private message
blueman541



Joined: 21 Dec 2005
Posts: 23

PostPosted: Wed Nov 22, 2006 8:22 am    Post subject: Reply with quote

I figured i could used the Dictionary object to create a semi hash table like data structure. I key it by filename, and it returns me the index i could reuse. Works =]

So, I only need to import once, save it to the Dictionary, and reuse it later.
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    iView Multimedia Forum Index -> VB Script All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



  © iView Multimedia Ltd. | All Rights Reserved Privacy Policy | Copyright | Site Map