Unofficial Nextion/TJC User Forum

Comvert String to integer

Hello All,
I want to look at the input of a text field and not allow a length of more the 48" to be input, but because the text is a string it has no value. Can I convert a string to an integer and then do something like:
If (integer_from_string > 48)
{
page go_to_error_page
}

TIA,
Muggs

Search for covx in the official documentation Instruction Set - Nextion

Kind regards,
Max

@Max Thank you! Perfect!


This forum is in no way affiliated with NEXTION®, ITEAD STUDIO®, TJC®, or anyone else really. All product names, logos, and brands are property of their respective owners. All company, product, and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement from the respective rights holder(s).