Forum Index
HomeZBasic Home   Forum RulesForum Rules   Forum FAQForum FAQ   MemberlistMemberlist   UsergroupsUsergroups   RSS FeedRSS Feed
Site SearchSite Search   LinksLinks   DownloadDownload   Digests and SubscriptionsDigests and Subscriptions
ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in   RegisterRegister
Variable type highlighting

 
Post new topic   Reply to topic    Forum Index -> ZBasic IDE
Author Message
Don_Kirby



Joined: 15 Oct 2006
Posts: 329
Location: Long Island, New York

Posted: 07 February 2008, 1:38 AM    Post subject: Variable type highlighting Reply with quote

The IDE highlights variable types such as Boolean and PersistentInteger.

It doesn't highlight PersistnentString_10 (bounded), although it compiles and works fine, meaning that I haven't mis-typed.

I've looked in the zbasic.api in the hopes that I could add it, but it seems that variable types aren't in there.

-Don
Back to top
mikep



Joined: 24 Sep 2005
Posts: 765
Location: Austin, TX

Posted: 07 February 2008, 3:35 AM    Post subject: Re: Variable type highlighting Reply with quote

Don_Kirby wrote:
The IDE highlights variable types such as Boolean and PersistentInteger.
The keywords are listed in the file called bas.properties. PersistentString is listed here.

Don_Kirby wrote:
It doesn't highlight PersistnentString_10 (bounded), although it compiles and works fine, meaning that I haven't mis-typed.
Well apart from the small typo above, you could add PersistentString_10 to the bas.properties file yourself. Of course the problem is that you might also want to add PersistentString_12, PersistentString_13, PersistentString_15 etc. You now I think you can see the reason why it is not listed in bas.properties.
Back to top
dkinzer
Site Admin


Joined: 03 Sep 2005
Posts: 2499
Location: Portland, OR

Posted: 07 February 2008, 5:55 AM    Post subject: Re: Variable type highlighting Reply with quote

Don_Kirby wrote:
It doesn't highlight PersistnentString_10 (bounded)
An alternative syntax, shown below, is highlighted.
Code:
Dim ps as PersistentString(10)
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic IDE Time synchro. with the server - Timezone/DST with your computer
Page 1 of 1

 


All content Copyright © 2005-2012 Elba Corp. All Rights Reserved.
Opinions expressed in posts are those of the author and not necessarily those of Elba Corp.
Powered by phpBB © 2001, 2005 phpBB Group