From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: char to string Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <8hrgn0$e19$1 AT nnrp1 DOT deja DOT com> <5te05.12211$Za1 DOT 193667 AT newsc DOT telia DOT net> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 30 X-Trace: /ba9QcUenBfmPIgfUlM9jy1XUCmx8SDc7Ue33x47ME+325MbuXJJ8YbsoBkg0q2VgwEtD61Y3A2V!PIB1l7zUiD2SRqqkKQ9RBHOaW4+Xlqqm2SQyg38kEFG0YyAYF1cmB4L+kBjb9gLVOpYI+rg/q1SM!VDc= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Mon, 12 Jun 2000 18:56:25 GMT Distribution: world Date: Mon, 12 Jun 2000 18:56:25 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 12 Jun 2000 16:06:54 GMT, "Fredrik Persson" wrote: >ok ok i was a little hasty but it isnt so hard.. > >switch accepts ints and chars so what u have to do if u dont wanna use: > >if > >else if > and so on.. You use a language such as Basic that can handle it: select case cmd$ case "dir", "ls" files case "del", "rm" kill arg$(1) end select Otherwise, you use else-if. -- Damian Yerrick "I refuse to listen to those who refuse to listen to reason." See the whole sig: http://www.rose-hulman.edu/~yerricde/sig.html This is McAfee VirusScan. Add these two lines to your signature to prevent the spread of signature viruses. http://www.mcafee.com/