Our full technical support staff does not monitor this forum. If you need assistance from a member of our staff, please submit your question from the Ask a Question page.


Log in or register to post/reply in the forum.

Declare variables in SlowSequence


Monte Apr 26, 2010 05:18 PM

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 *


jra Apr 28, 2010 05:12 PM

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


Monte Apr 29, 2010 09:35 AM

Thank you Janet for clarifying this!

Log in or register to post/reply in the forum.