Subj : "On the Fly" Hex-numb conversion ... ??? To : Steve From : Gerald Miller Date : Thu Feb 28 2002 04:53 pm From: Gerald.Miller@f512.n342.z1.cereal.mv.com (Gerald Miller) Subject: "On the Fly" Hex-numb conversion ... ??? Hello Steve, Subject: Re: "On the Fly" Hex-numb conversion ... ??? On Saturday February 09 2002 at 00:56, Steve wrote to All: S> From: "E. S. (Steve) Fabian" S> Gerald Miller wrote: GM>> and performing specific tasks based the converted address. S> Jasen.Betts@xspamp42.f531.n640.z3.fidonet.org wrote: JB>> I guess you'd be wanting to use iff or case for that... S> In fact, SWITCH is the better alternative - you have no limit of S> choices, unless you need values within specific ranges to be handled S> alike. S> To use SWITCH (or IF/IFF) it is not necessary to convert the numbers S> as long as they are always represented with the same number of leading S> 0s - they can be compared perfectly well as strings. While the string S> comparison is infinitesimally slower than the numeric comparison, the S> conversion will eat up the time difference, so I would just use the S> raw strings. At this point, I'm using IFF... I need to be able to trap a range of UNKNOWN hex numbers: iff exist %INC%\"UnKnown_hex".* then .... ??? elseiff exist %INC%\0000FE05.* then dir /hkmfo:d %INC%\????FE05.*>%INC%\INCOME.DAT set system=The First BBS set sysop=First Sysop set EXT=1st elseiff exist %INC%\0000FFF4.* then dir /hkmfo:d %INC%\????FFF4.*>%INC%\INCOME.DAT set system=The Second BBS set sysop=Second Sysop set EXT=2nd endiff Thanks ... Gerald -- |Fidonet: Gerald Miller 1:342/512 | | Origin: The Cereal Port BBS (603)899-3335 199.125.78.133 (1:132/152) --- # Origin: (1:132/152.4) * Origin: Baddog BBS (1:218/903) .