# String Array Initialization Problem

**URL:** https://talk.remobjects.com/t/string-array-initialization-problem/8860
**Category:** Silver
**Created:** [April 5, 2016, 3:59pm UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860 "2016-04-05T15:59:04Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![tylim](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/13edae/32.png) [@tylim](https://talk.remobjects.com/u/tylim)
#### Post date: [April 5, 2016, 3:59pm UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/1 "2016-04-05T15:59:04Z")

</div>

Hi Admin,

I wonder why the initialization for array with string type has problem, it has no problem with other type?  
Attach image shows my problem explanation.

 ![](https://talk.remobjects.com/uploads/default/original/2X/7/713e2cddf01eff319fd3e0d18ef16cb0925f31b6.png)

Thank You.

---

<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: [April 5, 2016, 4:01pm UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/2 "2016-04-05T16:01:14Z")

</div>

Curious. what platform, Java? it does sound like a bug.

---

<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: [April 5, 2016, 4:01pm UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/3 "2016-04-05T16:01:29Z")

</div>

Thanks, logged as bugs://74955

---

<div class="post-metadata">

### Author: ![ck](https://talk.remobjects.com/user_avatar/talk.remobjects.com/ck/32/8740_2.png) [@ck](https://talk.remobjects.com/u/ck)
#### Post date: [April 5, 2016, 4:19pm UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/4 "2016-04-05T16:19:50Z")

</div>

Oke so this isn’t actually a bug. In your base class there’s a “getString” method that’s treated as a property String[index: Integer]: String which it sees there because it’s higher in scope. In this case it would be best to use the full type name, “Swift.String”.

---

<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: [April 5, 2016, 4:19pm UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/5 "2016-04-05T16:19:59Z")

</div>

bugs://74955 got closed with status fixed.

---

<div class="post-metadata">

### Author: ![tylim](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/t/13edae/32.png) [@tylim](https://talk.remobjects.com/u/tylim)
#### Post date: [April 5, 2016, 4:47pm UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/6 "2016-04-05T16:47:36Z")

</div>

Do you mean declaration like this  
var someString = \*\*swift.String

I have tried this but it has no String type in swift but other type it has, you could see from my attached image. But anyway I know there is an alternative declaration for that as shown in the attached picture as well.

 ![](https://talk.remobjects.com/uploads/default/original/2X/1/1bda4b866e2b1883c2303d83c9764c02f0242cda.png)

Besides, may I know how can I use “insert” method for array type? Below picture shows my problem.

![](https://talk.remobjects.com/uploads/default/original/2X/f/faf1675f93dd5a5ad4cbf2b473ecbc5c7ce9fd56.png)  
 ![](https://talk.remobjects.com/uploads/default/original/2X/b/be02c1dbf40b8b65aa22408edda0e4488d08baad.png)

Appreciate your help! Thanks!

---

<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: [April 5, 2016, 5:44pm UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/7 "2016-04-05T17:44:55Z")

</div>

i believe it’s `java.lang.String`.

---

<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: [April 5, 2016, 5:46pm UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/8 "2016-04-05T17:46:52Z")

</div>

Thanks, logged as **74956: Silver: Provider better fallback when sewing up a type that’s hidden by a property**.

---

<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: [July 20, 2016, 11:16am UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/9 "2016-07-20T11:16:43Z")

</div>

bugs://74956 got closed with status fixed.

---

<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 1, 2020, 3:34am UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/10 "2020-09-01T03:34:46Z")

</div>

Logged as [bugs://i62984](https://www.remobjects.com/portal/bugs/?id=i62984).

---

<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 1, 2020, 3:35am UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/11 "2020-09-01T03:35:11Z")

</div>

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

---

<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 1, 2020, 3:35am UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/12 "2020-09-01T03:35:15Z")

</div>

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

---

<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 1, 2020, 3:35am UTC](https://talk.remobjects.com/t/string-array-initialization-problem/8860/13 "2020-09-01T03:35:31Z")

</div>

Logged as [bugs://i62985](https://www.remobjects.com/portal/bugs/?id=i62985).
