4 301 "code"is not valid identifier

Beta Testing discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
MAN
Posts: 437
Joined: 11 Jan 2006 18:32
Location: Brasil

4 301 "code"is not valid identifier

#1 Post by MAN » 31 Mar 2009 15:43

Hi ME;

I get this error when I try to allocate constants in program memory.
Working with you, for you!
MAN

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

Re: 4 301 "code"is not valid identifier

#2 Post by zristic » 31 Mar 2009 15:47

The CODE keyword is not implemented yet.
You can place a constant in the program memory by a simple declaration like:
const MyConst as char [3] = (1, 2, 3)

It is not needed to use the CODE keyword.

We will add it soon anyway.

MAN
Posts: 437
Joined: 11 Jan 2006 18:32
Location: Brasil

Re: 4 301 "code"is not valid identifier

#3 Post by MAN » 31 Mar 2009 17:25

zristic wrote:The CODE keyword is not implemented yet.
You can place a constant in the program memory by a simple declaration like:
const MyConst as char [3] = (1, 2, 3)

It is not needed to use the CODE keyword.

We will add it soon anyway.
Okay, I know the traditional way and it is working well. I just informed because when I was testing the new features I get this error. tell us an thing, the old manner won't be removed or yes?
Working with you, for you!
MAN

Post Reply

Return to “mikroBasic PRO for PIC Beta Testing”