| 4D v15RESOLVE POINTER | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 
 | 
    4D v15
 RESOLVE POINTER 
         | |||||||||||||||||||||||||||||||||||||||||||||||||||||
| RESOLVE POINTER ( aPointer ; varName ; tableNum ; fieldNum ) 
 | ||||||||||||||||||||||
Theme: Language
Starting with 4D v15, pointers to two-dimensional arrays are supported. For example, you can now write ->a{1}{2}.
As a result, when passing a pointer to an element of a two-dimensional array, the fieldNum parameter receives the element number of the second dimension. Also, RESOLVE POINTER now returns -1 instead of 0 in fieldNum for pointers to variables and single-dimension arrays.
The result table is now:
| Referenced object | Parameters | ||
| varName | tableNum | fieldNum | |
| ... | |||
| Variable | Name of the variable | -1 | -1 | 
| Array element | Name of the array | Element number | -1 | 
| 2D Array element | Name of the 2D array | Row element number | Column element number | 
| ... | 
Here is an example of a 2D array pointer:
 ARRAY TEXT(atCities;100;50)
 C_POINTER($city)
 atCities{1}{2}:="Rome"
 atCities{1}{5}:="Paris"
 atCities{2}{6}:="New York"
  // ...other values
 $city:=->atCities{1}{5}
 RESOLVE POINTER($city;$var;$rowNum;$colNum)
  //$var="atCities"
  //$rowNum="1"
  //$colNum="5"
	Product:  4D
	Theme:  Language
	
        
        
	
	4D v15 - Upgrade (standard edition) ( 4D v15)
Inherited from : RESOLVE POINTER ( 4D v15)
 Add a comment
Add a comment