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
is STOP a system command?

 
Post new topic   Reply to topic    Forum Index -> ZBasic Language
Author Message
victorf



Joined: 01 Jan 2006
Posts: 342
Location: Schenectady, New York

Posted: 09 February 2006, 13:32 PM    Post subject: is STOP a system command? Reply with quote

I was defining STOP as Public Const STOP as byte = 0 when I noticed that when I typed STOP it turned blue I then found STOP in the list of reserved words. What does it do. Is it like the "old" basic keyword that halts execution or has it been reserved for "Future Use"? Confused

Any enlightenment will be appreciated.

Vic
Back to top
victorf



Joined: 01 Jan 2006
Posts: 342
Location: Schenectady, New York

Posted: 09 February 2006, 13:34 PM    Post subject: Reply with quote

How about End Question

Vic
Back to top
mikep



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

Posted: 09 February 2006, 13:57 PM    Post subject: Reply with quote

According to the documentation (http://www.zbasic.net/doc/ZBasicRef/ZBasicRef97.html) both of these are reserved words probably for historical purposes more than anything.
Back to top
dkinzer
Site Admin


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

Posted: 09 February 2006, 16:40 PM    Post subject: Reply with quote

Stop is a keyword for historical reasons but it has no function in ZBasic. End is only used as part of End If, End Select, etc.

The list of words that the IDE highlights as keywords is separate from the list that the compiler considers reserved words. Although they generally will be the same, they need not be.

You can change the list of keywords that are highlighted in the IDE by modifying the keywordclass.bas entry. Although the original list is in the bas.properties file, it is best to effect changes by adding an entry to your User Options file. The entry below has been edited down to include only the keywords that have a role in ZBasic.

Code:
keywordclass.bas=alias and array as based bit boolean boundedstring \
byref byte bytetabledata bytetabledatarw bytevectordata bytevectordatarw byval \
call calltask case console.write console.writeline const debug.print do  \
else elseif end enum exit for function goto if integer integertabledata integertabledatarw \
integervectordata integervectordatarw is long longtabledata \
longtabledatarw longvectordata longvectordatarw loop module \
new next nibble not option or persistentboolean persistentbyte persistentinteger \
persistentlong persistentsingle persistentstring private public \
register resume return select set single singletabledata \
singletabledatarw singlevectordata singlevectordatarw static step string \
stringtabledata stringvectordata sub then to unsignedinteger \
unsignedlong until volatile wend while with xor
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Forum Index -> ZBasic Language 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