[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GSoft Basic subroutine



limtc wrote:
> Just wanted to check with you, within the subroutine, constant cannot
> be used right? I tried to declare a constant and when I attempt to use
> the constant in the subroutine, it is not available.
> 
> It is also weird that the editor does not indent the codes within the
> subroutines (thought it should be a no brainer that codes within SUB
> and END SUB should be indented!).
> 

I believe you must SHARED any values that are not passed or declared int
he subroutines.  It makes the values "global" for that routine.

SUB WHATEVER
SHARED VAR1, VAR2, CONST

Blah
Blah

END SUB