Go to Post FIRST is again mirroring real life. And in real life, when we build and design robotic and automated systems, it's safety first. Hitting a human in real life loses a lot more than 30 points. - Fred Agnir [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2003, 23:37
Raven_Writer's Avatar
Raven_Writer Raven_Writer is offline
2004 Detroit & Pittsburgh Winners
AKA: Eric Hansen
FRC #0005 (RoboCards)
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Melvindale
Posts: 1,549
Raven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really niceRaven_Writer is just really nice
Send a message via ICQ to Raven_Writer Send a message via AIM to Raven_Writer Send a message via MSN to Raven_Writer Send a message via Yahoo to Raven_Writer
Quote:
Originally posted by rbayer
Parallax has said from the beginning that the alpha/beta versions won't have syntax highlighting but the final version will.

There is no "switch" command. There is a SELECT...CASE...ENDSELECT structure, which does the same thing. Ie:

SELECT counter
CASE 0 TO 100
'do stuff
CASE 101 TO 200
'do other stuff
CASE 201 TO 255
'do even more other stuff
CASE ELSE
'stuff to do if none of the previous cases match
ENDSELECT

There's other things you can put after CASE also (such as a single number or an operator and a number (ie >5)), but the above code is the basics.

--Rob
D'oh...all well, sorry about that. I thought I mixed it up. Can you do "CASE > 4" or just "CASE pw_12 > 4"?
__________________
AIM: wisprmylastbreth
EMail: nightskywriter@gmail.com
Y!: synsoflife

"ai yoru ga" -- "Love the nights"
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PBASIC language syntax WizardOfAz Programming 14 30-04-2003 10:23
PBasic 2.5 vs. 2.0 Anthony Kesich Programming 6 09-02-2003 22:06
Broken PBASIC 2.5 Complier? Mike Yan Programming 12 01-02-2003 09:11
RoboEmu 1.09 (supports PBASIC 2.5) rbayer Programming 22 21-01-2003 17:22
PBASIC 2.5 answer from Parallax JasonS Programming 6 07-01-2003 19:21


All times are GMT -5. The time now is 22:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi