Forum - MCS Electronics
View previous topic :: View next topic
Author
Message
uga237 Joined: 15 May 2012 Posts: 32
Posted: Thu Feb 09, 2017 5:22 pm Post subject: Error : 256 Line : 10 Single expected [ 301]
Const Status VS Local Status.0
if use Status(not Status.0) - no error
----------------------------------------------------
Config Submode = New
Const Status = 08
Sub Sub1()
Local Status As Byte
Do
!nop
Loop Until Status.0 = 0
End Sub
Call Sub1
Do
Loop
--------------------------------------
Error : 256 Line : 10 Single expected [ 301] , in File : D:\Atmel\PDA\BASCOM\PDA\noname5.bas
Error?
Single??
(BASCOM-AVR version : 2.0.7.9 , Latest : 2.0.7.8 )
Back to top
MWS Joined: 22 Aug 2009 Posts: 2262
Posted: Thu Feb 09, 2017 7:25 pm Post subject: Re: Error : 256 Line : 10 Single expected [ 301]
uga237 wrote: Error?
Single??
If I compile this rather questionable code, I get no error at all.
Don't know, what you're doing.
Btw., what sense would it make to use a constant as shown for a loop, and always get a not changeable behavior?
Back to top
uga237 Joined: 15 May 2012 Posts: 32
Posted: Fri Feb 10, 2017 5:45 am Post subject: Re: Error : 256 Line : 10 Single expected [ 301]
MWS wrote: uga237 wrote: Error?
Single??
If I compile this rather questionable code, I get no error at all.
Don't know, what you're doing.
Btw., what sense would it make to use a constant as shown for a loop, and always get a not changeable behavior?
Essentially You reported no compilation errors, without specifying the compiler version.
The rest - not on the merits.
Behold the root.
Back to top
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum