From: | Simon Hitchen |
Date: | 15 Jan 2000 at 13:12:23 |
Subject: | Re: odd string length |
Hello Curt,
> I need to determine if a given string is an odd length.
>
> Any ideas?
test$="12345"
odd.w=Len(test$)-((Len(test$)+1)/2)*2
If odd
NPrint "Odd"
Else
NPrint "Even"
End If
MouseWait
End
Simon
MailTo:simon@gadge.u-net.com - simon@satanicdreams.com
http://www.gadge.u-net.com ICQ: 22707489
A1200T-060/50-48+4+2MB-CD-HDx2-V90-SVGA-SCSI-ZII-CGX/3D.
Health Warning! - This Amiga Is Genetically Modified(tm)
Revenge AGA:UFO_EU:WB-Tidy:WB-AnimAL:YAMM & other stuff.
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie