Skip to main content

The "string_upper_first" Function

Syntax#

string_upper_first(str);
ArgumentTypeDescription
strstringThe string to modify

Description#

Returns a string with the first letter of the first word capitalized. Only applies to English characters A-Z.

Example#

var mystring = "hello, world!";
draw_text(25, 25, string_upper_first(mystring));
// Result: "Hello, world!"