> Le 1 juin 2017 à 22:10, Chip Scheide via 4D_Tech <[email protected]> a 
> écrit :
> 
> I have a pointer to a 2D array
> Array text($My_Array;5;10)
> $ptr:=->$My_Array
> [...]
> The above syntax does not seem to work, can someone help with syntax?

Turnarounds I could find (execute formula, Get pointer, plugins…) always failed 
in some particular situation (compiled, component, etc.). While considering a 
2D array is a collection of 1D arrays (columns) is safe:

• pass one column:

array text($data_a2t;5;10)
myMethod(->$data_a2t{2})

• pass all columns:

array text($data_a2t;5;10)
array pointer($arr2Dcolumn_ap;0)
for($i;1;size of array($data_a2t))
 append to array($arr2Dcolumn_ap;->$data_a2t{$i})
end for
myMethod(->$arr2Dcolumn_ap)

-- 
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