As
Dim <.variable.> As <.user defined type.> | Type <.typename.> As <.user defined type.>
 
Parameters: NONE
Returns: NONE
 

      The As statement can either be used to define the type of a variable or array, or to define the parent type of a new user defined type (see the help on Type for more details).




Mini Tutorial:




  
; Inherited types
  Type T2DPoint
     X, Y
  EndType
  
  Type T3DPoint As T2DPoint
     Z
  EndType
  
; Type definition of an array
  Dim myPoints(10As T3DPoint
  
  myPoints(1).X = 12
  myPoints(1).Y = 3
  myPoints(1).Z = 1
  
  




 
Related Info: ArrayBasics | DIm | Functions&Psub | Global | Type | Variables :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com