Is there a command which places the ASCII value of a one length string variable to a byte variable?
For clarity:
StringVariable[1] = "A"
ByteVariable = SomeCommand(StringVariable)
ASCII Byte Value from Single String Variable
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: ASCII Byte Value from Single String Variable
Hello
You can just use the string as an array of bytes.
So for example you can do this.
StrVar = "Hello World"
ByteVar = StrVar[6]
ByteVar then should equal 'W'
This topic might help with some advanced string manipulation techniques.
viewtopic.php?f=63&t=17975&p=76223#p76223
You can just use the string as an array of bytes.
So for example you can do this.
StrVar = "Hello World"
ByteVar = StrVar[6]
ByteVar then should equal 'W'
This topic might help with some advanced string manipulation techniques.
viewtopic.php?f=63&t=17975&p=76223#p76223
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel