Blitz (84/144)

From:amorel
Date:22 May 2001 at 04:54:56
Subject:Re: BlitzII - Question of logic?

On 22-May-01, Tony Rolfe wrote:

C=An alternative approach is to use InStr$

C=Build a string containing the numbers (with leading zeroes and
C=delimited by "|")
C=Numbers$
C=="000001|000002|000004|000006|000111|000800|005678|222222"

C=; The above all on one line :-)

C=Then do

C=Format "000000"
C=if InStr$(Number$, Str$(YourNumber))
C=Then ; one was found
C=else ; not in list
C=endif

Yeah, that`s nice one, thanks =)

C=Alternatively, what's wrong with the obvious

C=Select YourNumber
C=Case 1
C=Case 2
C=Case any other number you like
C=end select

Not much normally, but if it can add up after some cases. Although if I got
lots of numbers to check making the string var can also become a pain I just
figured.

Regards



-*AMOREL*- musician/programmer \ \ Amiga 1200T/PPC/040/32/6g more shit
http://www.xs4all.nl/~amorel \ \ Good old C=64 and an attitude!
Running QNX rtp, linux, AmigaOS \ \ / /Half a decent studio
Music: www.mp3.com/vopak \ \/ /Contact me for bookings,
www.xs4all.nl/~amorel/amusic.html \/\/productions,demos,programs...

-*R u an AOL l33t? ----------> Amoralplayer1.5, a no fuss audioplayer*-

---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list/-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list/-help@netsoc.ucd.ie