Skip to main content
heyo
Associate III
Mar 24, 2023 8:27 AM UTC
Solved

How to convert TypedText and UnicodeChar to integer?

..

This topic has been closed for replies.
Yoann KLEIN
Yoann KLEINBest answer
ST Employee
Mar 24, 2023 8:52 AM UTC

Hello @heyo​,

You can use atoi() method to convert a UnicodeChar* to integer. And you can use getText() method to get your TypedText into a UnicodeChar*.

/Yoann

Yoann KLEINST Software Developer | TouchGFX

2 replies

Yoann KLEIN
Yoann KLEINBest answer
ST Employee
Mar 24, 2023 8:52 AM UTC

Hello @heyo​,

You can use atoi() method to convert a UnicodeChar* to integer. And you can use getText() method to get your TypedText into a UnicodeChar*.

/Yoann

Yoann KLEINST Software Developer | TouchGFX
heyo
heyoAuthor
Associate III
Mar 24, 2023 9:11 AM UTC

Thank you so much.