Skip to content

string_byte_at

drewmccluskey edited this page Dec 15, 2018 · 10 revisions

string_byte_at

Returns the raw byte value as a real value at a given position in the given string.

Syntax:

string_byte_at(str, index);
Argument Description
string str The string to check.
int pos The position to get the byte from.

Returns: real

Example:

int newbyte = string_byte_at("Hello, World!", 5);

This will set newbyte to the raw byte value of the sixth letter of "Hello World".

Back to strings

Clone this wiki locally