Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
IsAlpha etc
#7
(01-22-2026, 12:23 AM)ahenry3068 Wrote:
(01-22-2026, 12:09 AM)Pete Wrote: Probably stuff I don't need... unless you want to throw in 40 virgins, then I'd be happy to convert to IsNum. If this offended anybody, IsTooBad.

Pete Big Grin 

@ahenry3068

I do like the IsNum one. Val by itself is insufficient, so the function must check each character of the string. It is cool that val() can detect some, like &H75, which returns 117 if I remember correctly.

Pete

   The IsNum one is well optimized and one I use quite a bit,  It's handy !    The other one's I just threw together on the Spot to show Phil how it could be done.
I knew right away they aren't well optimized. !     I typically don't care much about Is Upper or Is Lower.    If I'm doing a comparison that needs to account for case
I usually force the case with UCASE before doing a comparison !

  I could optimize it a little by using _orelse instead of or in few of those functions.

Thanks both for that, but I already use similar constructs when I need them - and yes, I am aware of UCase$ and LCase$, and use these regularly.
What I meant was, could those functions be implemented as a keyword. I know, that's lazy, but if it speeds up or simplifies coding I think it would be worthwhile.
Of all the places on Earth, and all the planets in the Universe, I'd rather live here (Perth, Western Australia.) Big Grin
Please visit my Website at: http://oldendayskids.blogspot.com/
Reply


Messages In This Thread
IsAlpha etc - by PhilOfPerth - 01-21-2026, 10:36 PM
RE: IsAlpha etc - by ahenry3068 - 01-21-2026, 10:45 PM
RE: IsAlpha etc - by SMcNeill - 01-22-2026, 05:44 PM
RE: IsAlpha etc - by ahenry3068 - 01-21-2026, 10:56 PM
RE: IsAlpha etc - by ahenry3068 - 01-21-2026, 11:07 PM
RE: IsAlpha etc - by Pete - 01-22-2026, 12:09 AM
RE: IsAlpha etc - by ahenry3068 - 01-22-2026, 12:23 AM
RE: IsAlpha etc - by PhilOfPerth - 01-22-2026, 12:41 AM
RE: IsAlpha etc - by SMcNeill - 01-22-2026, 04:14 PM
RE: IsAlpha etc - by a740g - 01-22-2026, 06:03 PM
RE: IsAlpha etc - by PhilOfPerth - 01-22-2026, 10:32 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)