Indirection

Jean-Luc Arnaud <jean-luc-E/[email protected]> Wed, 16 Jan 2019 11:48:05 +0100
Newsgroups gmane.comp.lang.realbasic.user
Organization Centre Direct du Multimédia
Message-ID <[email protected]>
--------------EBF45398CB94DC6303B6EB2D
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit

Hi,

On the 7th of December, I sent the below message, and got no reply.

After seeking in Language Reference, forum and Internet, I think 
Delegate could be a solution.
What's your opinion?

TIA for any help.

-- 
Jean-Luc Arnaud

-------------------------

Hi all,
Is there a way to use a kind of indirection, just like Dynamic strings 
and #, but for other type of variable, in particular with arrays?
Let say I have 3 arrays named "MyArray1", "MyArray2" and "MyArray3".
I need to use them with indirection, something like:

     Dim Name1 As String="MyArray1"
     Dim Name2 As String="MyArray2"
     Dim Name3 As String="MyArray3"
     If Value=1
         Result=#Name1(0)
     End If


TIA for any help

-- Jean-Luc Arnaud

--------------EBF45398CB94DC6303B6EB2D
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi,<br>
    <br>
    On the 7th of December, I sent the below message, and got no reply.<br>
    <br>
    After seeking in Language Reference, forum and Internet, I think
    Delegate could be a solution.<br>
    What's your opinion?<br>
    <br>
    TIA for any help.<br>
    <pre class="moz-signature" cols="72">-- 
Jean-Luc Arnaud

-------------------------

</pre>
    <div class="moz-text-flowed" style="font-family: -moz-fixed;
      font-size: 12px;" lang="x-unicode">Hi all,
      <br>
      Is there a way to use a kind of indirection, just like Dynamic
      strings and #, but for other type of variable, in particular with
      arrays?
      <br>
      Let say I have 3 arrays named "MyArray1", "MyArray2" and
      "MyArray3".
      <br>
      I need to use them with indirection, something like:
      <br>
      <br>
          Dim Name1 As String="MyArray1"
      <br>
          Dim Name2 As String="MyArray2"
      <br>
          Dim Name3 As String="MyArray3"
      <br>
          If Value=1
      <br>
              Result=#Name1(0)
      <br>
          End If
      <br>
      <br>
      <br>
      TIA for any help
      <br>
      <br>
      -- Jean-Luc Arnaud
      <br>
    </div>
  </body>
</html>

--------------EBF45398CB94DC6303B6EB2D--