Jump to content
Sign in to follow this  
Kreatorul

Set a letter as a number

Recommended Posts

Kreatorul

Hello guys...long time since i used autoit...i need help: I want to set a number for a letter, I mean if it finds a letter in a string then find the number wich coresponds to that letter and add with with something. I have to set a number for each letter but I don't know how to do that...and then if it finds the letter in the string let's say it will show a MessageBox with the number set to corespond with that letter....hope you get it i'm bad at explaining...10x for reading :)

Share this post


Link to post
Share on other sites
Kreatorul

It suits my need but it's gonna take a loooot of time to finish my project :) anyway 10x i knew i was blind :D

Share this post


Link to post
Share on other sites
1905russell

Hello guys...long time since i used autoit...i need help: I want to set a number for a letter, I mean if it finds a letter in a string then find the number wich coresponds to that letter and add with with something. I have to set a number for each letter but I don't know how to do that...and then if it finds the letter in the string let's say it will show a MessageBox with the number set to corespond with that letter....hope you get it i'm bad at explaining...10x for reading :)

How about:

StringInStr()

IniReadSection(LettersToNumbers.ini,MyConversionTable)

- assuming you want your own unique numbers or else you could use Asc()

"and add with with something". ??? whats adding to what numbers, strings?

The above will give you all the variables you need to display in the MsgBox()

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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.