Re: Indirection question
fqd <[email protected]> Sun, 9 Dec 2018 15:50:12 +0100
| Newsgroups | gmane.comp.lang.realbasic.user |
|---|---|
| Message-ID | <[email protected]> |
--------------2C90A913CC6F973C23EEB1BA
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Hi,
I'm afraid there is no function like "Get Pointer" in 4D ( Pointeur vers
), in Xojo...
Maybe using another Array and copying into it ?
HTH,
Fred
Le 07/12/2018 à 18:35, Jean-Luc Arnaud a écrit :
> 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
>
--------------2C90A913CC6F973C23EEB1BA
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">
<div class="moz-cite-prefix"><font face="Times New Roman, Times,
serif">Hi, <br>
<br>
I'm afraid there is no function like "Get Pointer" in 4D (
Pointeur vers ), in Xojo...<br>
<br>
Maybe using another Array and copying into it ?<br>
<br>
HTH, <br>
Fred</font><br>
<br>
<br>
Le 07/12/2018 à 18:35, Jean-Luc Arnaud a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:1e993d09-7ec9-3179-fe78-6c3a043a9fd2-E/[email protected]">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>
<br>
</blockquote>
<p><br>
</p>
</body>
</html>
--------------2C90A913CC6F973C23EEB1BA--