# How to use index RTL type

**URL:** https://talk.remobjects.com/t/how-to-use-index-rtl-type/27057
**Category:** Elements
**Created:** [August 7, 2022, 1:32pm UTC](https://talk.remobjects.com/t/how-to-use-index-rtl-type/27057 "2022-08-07T13:32:30Z")
**Posts on this page:** 7
**Page:** 2

<div class="post-metadata">

### Author: ![RemObjectsSoftware](https://talk.remobjects.com/user_avatar/talk.remobjects.com/remobjectssoftware/32/15947_2.png) [@RemObjectsSoftware](https://talk.remobjects.com/u/RemObjectsSoftware)
#### Post date: [September 19, 2022, 6:37pm UTC](https://talk.remobjects.com/t/how-to-use-index-rtl-type/27057/21 "2022-09-19T18:37:52Z")

</div>

[bugs://E26076](https://www.remobjects.com/portal/bugs/?id=E26076) was closed as fixed.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [September 19, 2022, 6:50pm UTC](https://talk.remobjects.com/t/how-to-use-index-rtl-type/27057/22 "2022-09-19T18:50:06Z")

</div>

I’ll try to get a new build to you later today and would appreciate your feedback to hear idf this is working well now.

There’s still one open issue to support IndexRange as indexer on types that don’t _officially_ support it; probably that will be done later this week as well. String and Array should work now, on all platforms.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [September 20, 2022, 3:31pm UTC](https://talk.remobjects.com/t/how-to-use-index-rtl-type/27057/23 "2022-09-20T15:31:57Z")

</div>

`RemObjects Elements with Water - 11.0.0.2774` is in your personal downloads.

---

<div class="post-metadata">

### Author: ![xiaoguang](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@xiaoguang](https://talk.remobjects.com/u/xiaoguang)
#### Post date: [September 20, 2022, 4:35pm UTC](https://talk.remobjects.com/t/how-to-use-index-rtl-type/27057/24 "2022-09-20T16:35:45Z")

</div>

Got it, thanks.

Since we are in different timezones, it’s already 00:35 AM in China, I will test and provide feedback to you tomorrow.

---

<div class="post-metadata">

### Author: ![xiaoguang](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/x/a9a28c/32.png) [@xiaoguang](https://talk.remobjects.com/u/xiaoguang)
#### Post date: [September 21, 2022, 2:05pm UTC](https://talk.remobjects.com/t/how-to-use-index-rtl-type/27057/25 "2022-09-21T14:05:34Z")

</div>

Hi,

The following codes are fine for .net, but not for JAVA. I haven’t tested on other platforms.

```
        var testStr = "abcdef";
        var str1 = testStr[..1];
        var str2 = testStr[1..];
        var str3 = testStr[^1..];
        var str4 = testStr[..^1];
        var str5 = testStr[1..6];
        
        
        var array = new int[] { 1, 2, 3, 4, 5,6,7,8,9 };
        var array1 = array[..1];
        var array2 = array[1..];
        var array3 = array[^1..];
        var array4 = array[..^1];
        var array5 = array[1..6];

```

 ![图片](https://talk.remobjects.com/uploads/default/original/3X/6/6/6688c8d874252aebfd7f9e137fd59911e5772669.png)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [September 21, 2022, 2:56pm UTC](https://talk.remobjects.com/t/how-to-use-index-rtl-type/27057/26 "2022-09-21T14:56:08Z")

</div>

> [@xiaoguang](#):
>
> ```auto
> var testStr = "abcdef";
> var str1 = testStr[..1];
> var str2 = testStr[1..];
> var str3 = testStr[^1..];
> var str4 = testStr[..^1];
> var str5 = testStr[1..6];
>         
>         
> var array = new int[] { 1, 2, 3, 4, 5,6,7,8,9 };
> var array1 = array[..1];
> var array2 = array[1..];
> var array3 = array[^1..];
> var array4 = array[..^1];
> var array5 = array[1..6];
> 
> ```

Curious, I’ll retest Java.

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [September 21, 2022, 2:59pm UTC](https://talk.remobjects.com/t/how-to-use-index-rtl-type/27057/27 "2022-09-21T14:59:21Z")

</div>

Reproduced, logged as bugs://E26163: Range still parses as error on non-.NET platforms

[Previous page](https://talk.remobjects.com/t/how-to-use-index-rtl-type/27057.md?page=1)
