VicTT Posted September 25, 2005 Share Posted September 25, 2005 (edited) Func Misc_AddNull($number) Local $i,$s="" Debug("Misc_AddNull","StringLen should be "&$number) for $i=1 to $number $s=$s&Chr(0) Debug($s,StringLen($s)) next Return $s EndFunc Func Debug($a,$s) Msgbox(0,$a,$s) EndFunc $s="Whatever"&Misc_AddNull(4)&"Blah" Why doesn't that work?AutoIt just doesn't seem to want to add nulls to a string..WHAT IS THERE TO BE DONE? Edited September 25, 2005 by VicTT Quote Together we might liveDivided we must fall Link to comment Share on other sites More sharing options...
Confuzzled Posted September 25, 2005 Share Posted September 25, 2005 You asked the same question in another thread at http://www.autoitscript.com/forum/index.php?showtopic=16198 Link to comment Share on other sites More sharing options...
VicTT Posted September 25, 2005 Author Share Posted September 25, 2005 Actually, I asked the question in the Bug Forum AFTER I started a thread here and seen that no one doesn't really care to answer..I'm glad I've been given such an informative first-response.. Quote Together we might liveDivided we must fall Link to comment Share on other sites More sharing options...
jpm Posted September 25, 2005 Share Posted September 25, 2005 Actually, I asked the question in the Bug Forum AFTER I started a thread here and seen that no one doesn't really care to answer..I'm glad I've been given such an informative first-response..Your script is working as expected. you get a binary string of 4 null char. Link to comment Share on other sites More sharing options...
VicTT Posted September 26, 2005 Author Share Posted September 26, 2005 This happens in beta .76? Quote Together we might liveDivided we must fall Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now