GetSpotHitCount (open)

Return the number of times this functions was called from, from the caller's location

Syntax

// Core function, no LOADLIB necessary

INTEGER FUNCTION GetSpotHitCount()

Return value

INTEGER

Hit count, 1 for the first call

Examples

// prints '1-1\n2-2\n'
FOR (INTEGER i := 0; i < 2; i := i + 1)
  PRINT(`${GetSpotHitCount()}-${GetSpotHitCount()}\n`);