Page 1 of 1

Error: Subset Update

Posted: Thu May 21, 2015 3:54 pm
by dharav
Hello All

I am trying to update the subset.
So first i delete all elements in the subset and insert the elements including new one in the TI process.

SubsetDeleteAllElements(dim, sSub);
SubsetElementInsert (dim, sSub,'ABC', 1);
SubsetElementInsert (dim, sSub,'BCD', 2);=> New Element
SubsetElementInsert (dim, sSub,'DEF', 3);

Error:

Position of element exceeds the number of elements in subset +1.

When i open the subset, i found ABC and BCD. Earlier it had ABC and DEF. So it occupied only two seats on the train.

What could be the best practice to avoid it?

Thank You

Dharav

Re: Error: Subset Update

Posted: Thu May 21, 2015 4:38 pm
by dharav
Hello All

Its resolved. I inserted the new element in TI but subset name i wrote Member instead of Members (e.g.:).

Srry for your time.

Thank You

Dharav

Re: Error: Subset Update

Posted: Thu May 21, 2015 7:05 pm
by qml
This is a great example of why someone put together these lovely and useful Request for assistance guidelines and why it's imperative that people read and follow them for their own benefit. Especially this one:
Request for assistance guidelines wrote:5) For Rules and TurboIntegrator processes, posting the actual code and the real names of and structures of your cubes, dimensions and elements will be a thousand times more useful than an attempted description of them. You don't need to post real data, but the real code is needed. Pseudo code is obviously not "the real code". When you post something like "Suppose I have cube A and Cube B, and my rule is ['value'] = N:DB('CubeA', 'dim1, dim2'" etc, then three things happen. One, you reduce the chance that a syntax or typing error will be spotted, which means wasting time bouncing posts back and forth to try to get to the root of the problem. Two, you are usually describing what you think is happening, which may not be what is happening. Three, some more experienced members won't even look at the question because they've had too much time wasted by the first two issues in the past. You can upload entire .pro, .cho or .rux files as attachments if necessary, or just copy and paste the relevant part into your post using the Code tag at the top of the post editing window.