login about faq

I need to do some processing on CkStringArrays from a mailman.GetUidls...

My GetUidls stores them in saUIDLall

I also build a manual CkStringArray from a SQLite Database and call it saUIDLdb.

I needed to know which elements are in saUIDLall that are NOT in saUIDLdb. I was going to use

saUIDLall.substract(saUIDLdb)

to get the remaining left in saUIDLall (if understand substract correctly).

But before I do this, I don't want to "lose" what is in saUIDLall completely (for future processing). I thought I would "copy" saUIDLall to a temporary string array. I tried

saUIDLtmp=saUIDLall

that seemed to work (according to get_Count()) but after processing the saUIDLdb, the saUIDLtmp had the same # of records instead of the original count.

Is there a way to do this?

Thanks

Pete

asked Nov 11 '15 at 21:36

pbrama's gravatar image

pbrama
9334


There might be a better way, but I think you could call the Serialize method on your source CKStringArray, then create a new CKStringArray and call AppendSerialized on it with the serialized source result.

link

answered Nov 12 '15 at 09:38

jpbro's gravatar image

jpbro ♦
1.1k2618

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×6

Asked: Nov 11 '15 at 21:36

Seen: 330 times

Last updated: Nov 12 '15 at 09:38

powered by OSQA