Subj : Question
To : Digital Man
From : Frozen Fire
Date : Mon Aug 05 2002 04:30 pm
Re: Question
By: Digital Man to Frozen Fire on Mon Aug 05 2002 04:30:00
> Re: Question
> By: Frozen Fire to Digital Man on Sun Aug 04 2002 03:25 pm
>
> > > > My question, I need the switch to return the appropriate command ke
> > > > bbs, what function is best suited to do this? i.e. return str (wher
> > > > command key needed to do what is needed)
> > >
> > > Actually, I think you want to use UNGETKEY.
> > >
> >
> > I tried UNGETKEY, and the module went into a loop.. here's the tiny mod..
> >
> > !include sbbsdefs.inc
> > !define LAST 3
> >
> > int m
> >
> > cmd_home
> >
> > print "\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b
> > \b\b"
> >
> > compare m 0
>
> Stop right there. Why would you be comparing the value of 'm' when you haven
> even set it to anything?
>
> > if_true
> > print "[ Reply"
> > else
> > print "[ Reply"
> > end_if
> >
> > compare m 1
> > if_true
> > print " Reply Mail"
> > else
> > print " Reply Mail"
> > end_if
> >
> > compare m 2
> > if_true
> > print " Next"
> > else
> > print " Next"
> > end_if
> >
> > compare m 3
> > if_true
> > print " Abort ] (?) "
> > else
> > print " Abort ] (?) "
> > end_if
>
> You should use a switch/case block rather than all these compares.
>
> digital man
Thats what I did. Since a defined int defaults to zero, and zero denoted the
first line on the light bar.. well :)
In any event, its working now. Thanks again :)
� � � � z � � � � � � �
---
� Synchronet � The Impact Matrix (impactmatrix.darktech.org)