4D v15

Get pointer

Home

 
4D v15
Get pointer

Get pointer  


 

 

Get pointer ( varName ) -> Function result

Theme: Language

The Get pointer command has been rewritten to support new pointer types in 4D v15 (see the Unicode mode for methods section). The following modifications need to be taken into account:

  • Pointers to two-dimensional arrays, including using expressions, are now supported:
     $pt:=Get pointer("a{1}{2}")
      //$pt=->a{1}{2}
     $pt2:=Get pointer("atCities"+"{2}{6}")
      //$pt2=->atCities{2}{6}
  • Invalid names for variables now produce an error 77 ("Bad variable name"). In previous releases, they were accepted. For example:
     $pt:=Get pointer("123") //accepted in 4D < v15
      // rejected in 4D v15 and later versions
  • Extraneous white spaces are now supported:
     $pt:=Get pointer(" a ") //accepted in 4D v15: "->a"
      // rejected in 4D < v15



See also 

RESOLVE POINTER

 
PROPERTIES 

Product: 4D
Theme: Language

 
HISTORY 

 
ARTICLE USAGE

4D v15 - Upgrade (R-release edition) ( 4D v15)

Parent of : Get pointer ( 4D v15)