Tuesday October 29, 2024

       
      SteelArrow Basics
      SteelArrow Tags
  SteelArrow Functions
  SteelArrow Objects
  Advanced Topics
  WAS Overview
   
   
       
      Overview
  Code Samples
  Site Search
   
   
   


Get SteelArrow!     
  <SAGOTO/>    
 
 
 
Return to Tag List
 
The GOTO tag moves a variables internal pointer to the specified row or record within TABLE and LIST objects (zero based).
 
Attributes:
NAMEvariable
VALUEindex offset (zero based)

 
The following is an example of GOTO;
 
<!--- Create a LIST object containing 12,34,56,78 --->
<SASET NAME=list VALUE=MakeList( ":", "12:34:56:78" )>

<!--- Move to element 3 (0 based) --->
<SAGOTO NAME=list VALUE=2>

<SAOUTPUT VALUE=list> <!--- third element (56) --->

<SAFIRST NAME=list> <!--- Move to first element --->
<SAOUTPUT VALUE=list> <!--- first element (12) --->

<SALAST NAME=list> <!--- Move to last element --->
<SAOUTPUT VALUE=list> <!--- Outputs 4th element (78) --->





Copyright © 1998-2004 Tomahawk Technologies Inc.
Privacy Policy