Xref: utzoo alt.religion.computers:2526 comp.windows.ms.programmer:3197 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!magnus.acs.ohio-state.edu!usenet.ins.cwru.edu!ysub!psuvm!f0o Organization: Penn State University Date: Thursday, 20 Jun 1991 09:45:49 EDT From: Message-ID: <91171.094549F0O@psuvm.psu.edu> Newsgroups: alt.religion.computers,comp.windows.ms.programmer Subject: Re: ap, Windows BASIC References: <91169.084617F0O@psuvm.psu.edu> <4k4q47w164w@mantis.co.uk> In article <4k4q47w164w@mantis.co.uk>, mathew@mantis.co.uk (Giving C News a *HUG*) says: >F0O@psuvm.psu.edu writes: >> It has some nice features I wish were >> in Pascal or other languages. Like QB's SELECT CASE statement; much more >> powerful then Pascals. >What, you mean it allows general boolean expressions for each CASE, like >Clipper 5.0 does? That makes it just syntactic sugar; most other languages >have the same feature available, they just call it IF...ELSEIF...ENDIF. Two examples should get my point across: This segment will match strings that are exactly equal to "everything" the current value of AnotherString, or that fall between "nuts" and "soup" in alphabetical order SELECT CASE AStringVariable CASE "everything", "nuts" TO "soup", AnotherString ... END SELECT This code will compare ANumericVariable for numbers between 1 and 4, 7 to 9, 11, 13, or if ANumericVariable > MaxNumber SELECT CASE ANumericVariable CASE 1 to 4, 7 to 9, 11, 13, IS > MaxNumber ... CASE ELSE ... END SELECT >> It is a fully structured language except for the >> fact you can't have nested blocks as in Pascal. >That's like saying it's fully object-oriented except it doesn't have >inheritance... Could be, except I don't use nested blocks very often, so I don't miss it too much. >> I like about the QB environment is when you press the F2 key, a window >> pops up with a list of all your procedures/functions. Click on the one >> you want to look at and bingo. Very nice. >My editor does that, for C, C++, Pascal, Modula-2, Clipper, or any other >language you care to tell it about. Which editor is that, and how hard was it to set up? [Tim]