Page 1 of 1

SubsetElementGetIndex TI function

Posted: Wed Aug 24, 2016 5:48 pm
by gtonkin
Saw this documentation update tonight and thought it may be useful to some - needs 10.2.2 FP6 however.

I guess it is not really returning the index of the element in the subset that is useful - for me right now being able to test if an element is part of the subset is probably more useful i.e. having a zero returned indicating element is not within the subset.

Re: SubsetElementGetIndex TI function

Posted: Wed Aug 24, 2016 7:08 pm
by qml
Wow. SUBIX. Finally.

Re: SubsetElementGetIndex TI function

Posted: Wed Aug 24, 2016 10:49 pm
by lotsaram
qml wrote:Wow. SUBIX. Finally.
There's also going to be a CubeGetDimensionCount. Although it's clearly been a missing function there are more important things I would have focused on given the chance.

Re: SubsetElementGetIndex TI function

Posted: Tue Aug 30, 2016 12:15 pm
by Wim Gielis
gtonkin wrote:I guess it is not really returning the index of the element in the subset that is useful
If the function SubsetElementDelete only takes an index instead of an element name, I would be interested in the index number in the subset.

Re: SubsetElementGetIndex TI function

Posted: Fri Sep 02, 2016 7:54 am
by Duncan P
The key thing is that by specifying a start index they have given a way of iterating over all the occurrences of an element in a subset.

Re: SubsetElementGetIndex TI function

Posted: Thu Jul 27, 2017 8:52 am
by lotsaram
Wim Gielis wrote: Tue Aug 30, 2016 12:15 pm
gtonkin wrote:I guess it is not really returning the index of the element in the subset that is useful
If the function SubsetElementDelete only takes an index instead of an element name, I would be interested in the index number in the subset.
There is a ER for SubsetElementDeleteByName if you want to vote for it.
http://www.ibm.com/developerworks/rfe/e ... _ID=108338

Re: SubsetElementGetIndex TI function

Posted: Sat Aug 19, 2017 8:09 pm
by Alan Kirk
lotsaram wrote: Thu Jul 27, 2017 8:52 am
Wim Gielis wrote: Tue Aug 30, 2016 12:15 pm
gtonkin wrote:I guess it is not really returning the index of the element in the subset that is useful
If the function SubsetElementDelete only takes an index instead of an element name, I would be interested in the index number in the subset.
There is a ER for SubsetElementDeleteByName if you want to vote for it.
http://www.ibm.com/developerworks/rfe/e ... _ID=108338
Upvote from me; you seem to have considered all of the angles including when it should and shouldn't fail. (Let's not get started on TI still not having Try / Catch or any other real error handling, but that aside...)

Re: SubsetElementGetIndex TI function

Posted: Sun Aug 20, 2017 7:32 pm
by Wim Gielis
I voted too !

Re: SubsetElementGetIndex TI function

Posted: Sun Aug 20, 2017 9:26 pm
by lotsaram
There's also an ER for SubsetAliasGet while you're at it!
http://www.ibm.com/developerworks/rfe/e ... _ID=109262

Re: SubsetElementGetIndex TI function

Posted: Mon Aug 21, 2017 8:36 am
by Wim Gielis
You got my vote, I have been in the same boat of reading out *.SUB files, which is an unnecessary overhead.