Renderer

Autoit Split strings from array

5 posts in this topic

Hello guys ! 

I've got the following array containing 2 strings : 

local $string[3] = ["HELLO","WORLD"]

How can i split each string and return the ASCII of each character?

Thanks in advance

Share this post


Link to post
Share on other sites



#include<array.au3>

local $aString[2] = ["HELLO","WORLD"]

_ArrayDisplay(StringToASCIIArray(_ArrayToString($aString , "")))

 


,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-.
|(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/
(_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_)
| | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) (
| | | | |)| | \ / | | | | | |)| | `--. | |) \ | |
`-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_|
'-' '-' (__) (__) (_) (__)

Share this post


Link to post
Share on other sites


:geek:

Local $string[3] = ["HELLO", "WORLD"]
For $Element In $string
    For $chr In StringSplit($Element, '', 2)
        ConsoleWrite($chr & @TAB & Asc($chr) & @CRLF)
    Next
    ; ConsoleWrite(@CRLF)
Next

 

1 person likes this

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now