Solved
Text content
Hello, I want to compare text area content with enum TEXTS. How can I do this?
Hello, I want to compare text area content with enum TEXTS. How can I do this?
Hello heyo,
I think you'll need to use the getText() function and the Unicode::strncmp() function :
int result = Unicode::strncmp(textArea1.getTypedText().getText(), TypedText(T_TEXT1).getText(), Unicode::strlen(textArea1.getTypedText().getText()));
touchgfx_printf("result : %d", result);
//result return 0 if they're identical, 1 if the strings are differents/Osman
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.