The Repository indexing system uses a 1-based index, but all other .NET structures use 0-based.
This causes issues when trying to use the indexes and requires the user to know that there needs to be a conversion.
The Repository index should be changed to match standard .NET conventions. All indexing should be based on the same value.
Repository element indexing uses 1-based index vs. 0-based
Repository element indexing uses 1-based index vs. 0-based
Shortcuts usually aren't...
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Repository element indexing uses 1-based index vs. 0-based
Hello,
Could you please describe which index do you mean?
Do you mean the index attribute in the RanoreXPath of a repository item?
Regards,
Markus (T)
Could you please describe which index do you mean?
Do you mean the index attribute in the RanoreXPath of a repository item?
Regards,
Markus (T)
Re: Repository element indexing uses 1-based index vs. 0-based
Marcus,
Yes, that is correct. The RxPath indexing starts at 1, but all other indexes, including container child indexes, start at 0, per .NET standards.
Yes, that is correct. The RxPath indexing starts at 1, but all other indexes, including container child indexes, start at 0, per .NET standards.
Shortcuts usually aren't...
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria
Re: Repository element indexing uses 1-based index vs. 0-based
Hello,
This is because the RxPath is a subset of XPath and according to the W3C standard the index is 1 based (XPath Syntax).
Regards,
Markus
This is because the RxPath is a subset of XPath and according to the W3C standard the index is 1 based (XPath Syntax).
Regards,
Markus
Re: Repository element indexing uses 1-based index vs. 0-based
OK, that explains it.
Thanks Markus.
Thanks Markus.
Shortcuts usually aren't...
- Support Team
- Site Admin
- Posts: 12167
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Graz, Austria