Hello
Is it allowed to declare variables and constants using PUBLIC and CONST inside a SlowSequence?
e.g.
BeginProg
Scan
.
NextScan
SlowSequence
PUBLIC testvariable As String
CONST testconst = 999.99
Scan
.
NextScan
EndSequence
EndProg
It compiles and apparently works fine. But since the cr1000 manual states "Public variables, Dim variables, Constants, ... are declared at the beginning of a CRBASIC program." I'm not sure if I risk getting troubles at some point?
Thanks
Manuel
* Last updated by: Monte on 4/26/2010 @ 11:20 AM *
Manuel,
You should be fine with declarations in a SlowSequence. The manual recommends declarations be placed at the beginning of the program for convenience and ease of future editing.
Regards,
Janet