Declaration of Variables

 

In Cypress Enable variables are declared with the Dim statement.  To declare a variable other than a variant the variable must be followed by As or appended by a type declaration character such as a % for Integer type.

 

Sub Main

   Dim X As Integer

   Dim Y As Double

   Dim  Name$, Age%  ' multiple declaration on one line Dim v 

End Sub