Convert String to decimal

Is it possible to Convert String to decimal ASCII ?
Note:I am not talking about char to decimal ascii

If it's in a String, it's already ASCII

What's the function to get the decimal ASCII

Your question is incomplete. Do you want "ABC" to become 65,66,67?
(Hint, it already is).

Do you want to convert "123" to 1,2,3 ? Just subtract 48 from each character.

A post was split to a new topic: Water sensor project1

String a;
Int z;
a="A";
z=a;
Is it correct ?
Note:Just an algorithm

Please guys answer me I need the answer as soon as impossible

Is it correct against what criteria?

Z would give 65 ?

We need a question.
Exactly what are you trying to do?

I really don't understand what you want.
Or why.

I want to get decimal ascii from each character of String message
For example
String message;
message="Abc";
I want to get decimal ascii of message[0],message[1],message[2]

Then simply address the elements of the String, and cast them to an int.
Or just assign them to an int

How can I do that in code ?

So, you want
message[0]=65
message[1]=98
message[3]=99
??

First, I don't use Strings. I use C strings (character arrays)
char* message = "Abc";
is:
message[0]=65
message[1]=98
message[3]=99
message[4]=0

Using this ?

No you misunderstood me
In my case I don't know what message includes
message is sent from user via bluetooth

And why I can't use string