Action
Declares a subroutine.
Syntax
DECLARE SUB TEST[(var as type)]
Remarks
test |
Name of the procedure. |
Var |
Name of the variable(s). Maximum 10 allowed. |
Type |
Type of the variable(s). Bit, Byte,Word, Integer, Long or String. |
You must declare each sub before writing or using the sub procedure.
See also
Example
Dim A As Byte , B1 As Byte , C As Byte
Declare Sub Test(a As Byte)
A = 1 : B1 = 2 : C = 3
Print A ; B1 ; C
Call Test(b1)
Print A ; B1 ; C
End
Sub Test(a As Byte)
Print A ; B1 ; C
End Sub