erezlevi Posted January 28, 2008 Share Posted January 28, 2008 hi, how can I write the following with AU3: For i = 1 To 40 Debug.Print Mid(s, i, 1) & "=" & Asc(Mid(s, i, 1)) Next without the Debug.Print...is there a Mid function I don't see it. Link to comment Share on other sites More sharing options...
Swift Posted January 28, 2008 Share Posted January 28, 2008 what does Debug.Print Mid...? ive never learned VB and dont plan too Link to comment Share on other sites More sharing options...
weaponx Posted January 28, 2008 Share Posted January 28, 2008 ConsoleWrite() StringMid() Asc() Link to comment Share on other sites More sharing options...
erezlevi Posted January 28, 2008 Author Share Posted January 28, 2008 what does Debug.Print Mid...? ive never learned VB and dont plan too well you should it is the basics of all. there are some things that you can't do with AutoIT but only with VB and C++. Link to comment Share on other sites More sharing options...
erezlevi Posted January 28, 2008 Author Share Posted January 28, 2008 (edited) ConsoleWrite() StringMid() Asc() Thanks alot. I had to use this until you made your post: #include <File.au3> #include <Array.au3> Dim $L[5000] Dim $MM[5000] $file=FileOpen ("c:\erez.txt",1) $m=FileReadLine ("c:\erez.txt",1) $J=$m MsgBox (0,"",StringLen ($m)) for $i=1 to StringLen ($m) $L[$i]=StringLeft ($m,1) $m=StringTrimLeft ($m,1) ; MsgBox (0,"",$m) Next _ArrayDisplay ($L) for $i=1 to StringLen ($J) $MM[$i]=Asc ($L[$i]) Next _ArrayDisplay ($MM) Edited January 28, 2008 by erezlevi 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