<div dir="ltr">Works here with development version.<br><div>What is your version?</div><div><br></div><div><br></div><div>Jussi<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Nov 18, 2019 at 4:29 AM T Lee Davidson <<a href="mailto:t.lee.davidson@gmail.com">t.lee.davidson@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">The documentation for Mid() [0] says:<br>
Using string like arrays (as known as "Boxed strings")<br>
SINCE 3.12<br>
You can get the contents of a string using the following array-like syntax:<br>
<br>
<br>
Result = String [ Start As Integer [ , Length As Integer ] ]<br>
--- end quote ---<br>
<br>
Nice. But the following causes the exception, "Not an object":<br>
Public Sub Main()<br>
<br>
   Dim s As String = "123456789"<br>
<br>
   Print s[3, 1]<br>
<br>
End<br>
<br>
<br>
Is this a bug, or am I misunderstanding the documentation?<br>
<br>
<br>
___<br>
Lee<br>
<br>
[0] <a href="http://gambaswiki.org/wiki/lang/mid" rel="noreferrer" target="_blank">http://gambaswiki.org/wiki/lang/mid</a><br>
<br>
----[ Gambas mailing-list is hosted by <a href="https://www.hostsharing.net" rel="noreferrer" target="_blank">https://www.hostsharing.net</a> ]----<br>
</blockquote></div>