I was lazy enough not to test your scripts this far...
I started with the easiest one, Shanes...
Code:
$cnt=0
For $i=65 to 126
$cnt=$cnt+1
$OutString = $OutString + chr($i)
Next
For $i=128 to 158
$cnt=$cnt+1
$OutString = $OutString + chr($i)
Next
For $i=159 to 254
$cnt=$cnt+1
$OutString = $OutString + chr($i)
Next
$nul = messagebox("Length of should be $cnt and it is " + len($Outstring), "String Length")
and everything is cool with that. then did:
Code:
For $i=65 to 254
if 1<>len(chr($i))
? "length not right chr($i), got "+len(chr($i))
endif
if $i<>asc(chr($i))
? "asc() not right for asc(chr($i)), got "+asc(chr($i))
endif
Next
"done, how many failed?"
get $