Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

cloning LLvalue

Status
Not open for further replies.

matasa

Programmer
Jan 29, 2009
13
US
Hi,
I'm wondering if there is a simple way to clone an LLValue containin a category description. The reason why I ask that is because I've got a lots of entries to process (between 5 and 10 thousand) and I'd like to speed up the import.

Today I do the following for each object I create:
- doc.FetchCategoryVersion (... catVersion)
- a handful of attrValues.add
- attr.AttrSetValues(catVersion ....)

then later, CreateObjectEx.

In the documentation it is said that catVersion is an output for method AttrSetValues, therefore I need a pristine "LLValue catVersion" for each object I process,but *without* using the slow doc.FetchCategoryVersion.

Maybe reading once the category, then cloning it and copying it back for each object will be ok, but LLValue does not seem to offer a clone method so I'm stuck there.

Any help will be appreciated.
Thanks in advance.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top