IsNum
#5
Most of these are so trivial to write, that it's just not worth the effort to import a DECLARE LIBRARY to do them.  For example:

Code: (Select All)
FUNCTION IsDigit (a AS INTEGER)
   IF a >= 48 AND a <=57 THEN IsDigit = -1
END FUNCTION

Code: (Select All)
FUNCTION IsLower(a AS INTEGER)
  IF a AND 32 Then IsLower = -1
END FUNCTION

Code: (Select All)
FUNCTION ToLower(a AS INTEGER)
  ToLower = a OR 32
END FUNCTION

Code: (Select All)
FUNCTION ToUpper(a AS INTEGER)
    ToUpper = a AND NOT 32
END FUNCTION

(And I got tired of scrolling up and down to look and see what else was in the list of things you had, but they all seem to be about that simple to implement.  Wink )
Reply


Messages In This Thread
IsNum - by SMcNeill - 11-30-2022, 04:00 PM
RE: IsNum - by SMcNeill - 11-30-2022, 04:10 PM
RE: IsNum - by grymmjack - 12-27-2022, 11:15 PM
RE: IsNum - by grymmjack - 12-27-2022, 11:27 PM
RE: IsNum - by SMcNeill - 12-27-2022, 11:58 PM



Users browsing this thread: 5 Guest(s)