> Le 2 juin 2017 à 23:41, Garri Ogata via 4D_Tech <[email protected]> a 
> écrit :
> 
> Greetings,
> 
> Using Get pointer is another way of doing as well.


Don't be confident in this, it fails in at least 2 situations:
• compiled if the array is local
• in a host/component context if the variable belongs to "the other"

There is also "API Get Array Item Pointer" from APIpack plugin, but it does not 
work in component/host context too. 

More generally, each time I use "Get pointer" (or "RESOLVE POINTER", similar), 
I feel like being using the "last chance solution". Better to ignore they 
exist. I recently found that in my own old code:
  for($i;1;10)
    $var:=Get pointer("myVar"+string($i))
  end for
Shame on me, that's an array. 

I think there is a gap in 4D langage, I'd like 4D to fill it:
<http://forums.4d.fr/Post/FR/18376531/1/18376532#18376532>

-- 
Arnaud de Montard 




**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:[email protected]
**********************************************************************

Reply via email to