# InStr Documentation Error

**URL:** <https://forum.xojo.com/t/instr-documentation-error/19496>\
**Category:** General\
**Created:** [September 26, 2014, 5:30pm UTC](https://forum.xojo.com/t/instr-documentation-error/19496 "2014-09-26T17:30:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Randy\_Baskin](https://forum.xojo.com/letter_avatar_proxy/v4/letter/r/b77776/32.png) [@Randy\_Baskin](https://forum.xojo.com/u/Randy_Baskin)\
**Post date:** [September 26, 2014, 5:30pm UTC](https://forum.xojo.com/t/instr-documentation-error/19496/1 "2014-09-26T17:30:17Z")

</div>

To anyone who has the authority to update the online documentation, the documentation for InStr needs to be corrected.

The sections highlighted in yellow show the information that is incorrect. The default for “start”, if omitted, is Zero not One. The example highlighted in the note section should say that it returns 0 not 1.

![](http://i61.tinypic.com/9rkl69.png)

As you can see below, the tip that is shown in the status bar is correct.

![](http://i62.tinypic.com/ev9nax.png)

To quickly verify this, you can cut and paste the code below:

```auto
Dim s As String = "This is a test"
Call MsgBox( _
    "Dim s as string = ""This is a test""" + EndOfLine + _
    EndOfLine + _
    "s.InStr( """" )" + EndOfLine + _
    "Result = " + Str( s.InStr( "" ) ) + EndOfLine + _
    EndOfLine + _
    "InStr( ""This is a test"", """" )" + EndOfLine + _
    "Result = " + Str( InStr( "This is a test", "" ) ), _
    0, "InStr Example" _
    )
```

For anyone that was going to suggest entering this in Feedback, I don’t have the Feedback application installed. I rarely use RS and have no interest in upgrading to Xojo. So consider this post a benevolent gesture to the community because I noticed the inaccurate information in the Wiki. If a Feedback needs to be entered, then someone more invested in the documentation being correct can enter it.

Good day!

---

<div class="post-metadata">

**Author:** ![Harrie\_Westphal](https://forum.xojo.com/letter_avatar_proxy/v4/letter/h/7feea3/32.png) [@Harrie\_Westphal](https://forum.xojo.com/u/Harrie_Westphal)\
**Post date:** [September 26, 2014, 5:38pm UTC](https://forum.xojo.com/t/instr-documentation-error/19496/2 "2014-09-26T17:38:54Z")

</div>

Perhaps you are looking at some old documentation as the current docs show the proper info.

---

<div class="post-metadata">

**Author:** ![Paul\_Lefebvre](https://forum.xojo.com/user_avatar/forum.xojo.com/paul_lefebvre/32/3152_2.png) [@Paul\_Lefebvre](https://forum.xojo.com/u/Paul_Lefebvre)\
**Post date:** [September 26, 2014, 5:39pm UTC](https://forum.xojo.com/t/instr-documentation-error/19496/3 "2014-09-26T17:39:19Z")

</div>

Thanks, Randy. I’ve updated the page.

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [October 29, 2020, 5:25pm UTC](https://forum.xojo.com/t/instr-documentation-error/19496/4 "2020-10-29T17:25:56Z")

</div>


