•  Back 
  •  Main 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : The GFA-Basic Compendium
Author      : GFA Systemtechnik GmbH
Version     : GFABasic.HYP v2.98 (12/31/2023)
Subject     : Documentation/Programming
Nodes       : 899
Index Size  : 28056
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : 
@default    : Document not found
@help       : Help
@options    : +g -i -s +z
@width      : 75
@hostname   : STRNGSRV
@hostname   : CAB     
@hostname   : HIGHWIRE
@hostname   : THING   
View Ref-FileRSRC_GADDR(type,index,addr)

type, index: iexp
addr: ivar

The function determines the address of a resource structure after it has been
loaded with RSRC_LOAD(). Depending on the version of GEM, this function may
only work for object trees and alerts (ad_frstr).

Returns 0 if an error occured.

    type  - Type of structure whose address is to be found:
            0 : Object tree  the tree loaded with RSRC_LOAD()
            1 : OBJECT       object
            2 : TEDINFO      text information
            3 : ICONBLK      icon information
            4 : BITBLK       bit-mapped graphic information
            5 : STRING       text
            6 : image data   bit-mapped graphic
            7 : obspec       object specification
            8 : te_ptext     string
            9 : te_ptmplt    text template
            10: te_pvalid    text validation string
            11: ib_pmask     icon display mask
            12: ib_data      icon bit map
            13: ib_text      icon text
            14: bi_pdata     image data
            15: ad_frstr     address of pointer to free string
            15: ad_frimg     address of pointer to free string
    index - The number (not the object number) of the object whose address is
            requested, counting objects of that type one by one from the
            beginning of the Resource file.
    addr  - Returns the requested address.

Example:

    ~RSRC_GADDR(0,0,tree%)

Memo: The code inside the editor seems to indicate that parameter 'addr'
      should be optional, however the syntax rule doesn't seem to allow it.

rsrc_gaddr()+