[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: GSoft Basic subroutine
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!).
On 5月1日, 下午11时03分, "Jeff Blakeney" <jeff.blake...@a2central.com.remove-
tlt-this> wrote:
> The only way I could get the code to run was to make sure there was code
> before the SUB. This worked:
>
> CALL Init
> GET A$
> END
> SUB Init
> HGR
> END SUB
>
> but this code didn't work:
>
> SUB Init
> HGR
> END SUB
> CALL Init
> GET A$
> END
>
> I'm not sure where my GSoft manual is at present so I can't look up what
> restrictions there are for using SUB/FUNCTION statements but at first
> glance I'd say that you aren't allowed to have code that isn't in a SUB
> or FUNCTION after the first SUB or FUNCTION statement appears.
> --- Synchronet 3.14a-Win32 NewsLink 1.85
> A2Central.com - Your total source for Apple II computing.