Few words is highlighted !

Discuss about beta versions of mikroBasic
compiler.
Post Reply
Author
Message
yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

Few words is highlighted !

#1 Post by yo2lio » 17 Feb 2008 11:36

Hello,

Why this words is highlighted in MikroBasic and I can't use this words for variable names ?

str, time, hour, month, len, input ... It's possible to be more ....

This names is accepted by MikroBasic compiler only if library with this variables is compiled with MikroPascal and then I use it from *.mcl file ...
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

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

Re: Few words is highlighted !

#2 Post by zristic » 17 Feb 2008 11:58

The language highlighter takes the Visual Basic syntax, where those words are reserved.

What problems does it exactly cause to you?

yo2lio
Posts: 1878
Joined: 19 Sep 2006 12:57
Location: Romania, Arad City
Contact:

Re: Few words is highlighted !

#3 Post by yo2lio » 17 Feb 2008 14:30

zristic wrote:What problems does it exactly cause to you?
I can't use this words in MikroBasic.

For example :

Mikropascal :

Code: Select all

type TNtp = Record
     Rfc   : dWord;
     Unix  : dWord;
     Year  : word;
     Month : byte;
     Day   : byte;
     Hour  : byte;
     Min   : byte;
     Sec   : byte;
     Str   : string[32];
end;
MikroBasic:

Code: Select all

structure TNtp
  dim Rfc as longword
  dim Unix as longword
  dim Year as word
  dim Month as byte
  dim Day as byte
  dim Hour as byte
  dim Min as byte
  dim Sec as byte
  dim Str as string[32]
end structure
61:7 E-1 'month' is not valid identifier lib1_ENC28J60_V3_3.pbas
63:7 E-1 'hour' is not valid identifier lib1_ENC28J60_V3_3.pbas
66:7 E-1 'str' is not valid identifier lib1_ENC28J60_V3_3.pbas


I want to keep compatibility between MIkroPascal and MikroBasic libraries.
I can not do this if source code is rewritten in MikroBasic.

Work without problems only when I use *.mcl file from MikroPascal.
Best regards, Florin Andrei Medrea.

http://www.microelemente.ro/
http://www.microelemente.ro/produse-si-servicii/
http://www.microelemente.ro/custom-software/

mail : florin@microelemente.ro

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

Re: Few words is highlighted !

#4 Post by zristic » 17 Feb 2008 14:47

I see.
At the moment i see no solution for that problem, sorry.

Post Reply

Return to “mikroBasic Beta testing”