Skip to main content
SKokk.1
Associate III
June 30, 2020
Solved

How to access TextBuffer using pointer

  • June 30, 2020
  • 2 replies
  • 927 views

Hello,

On a working project with TouchGFX, i have over 150 TextBuffers (wildcards) which i access and change/edit on runtime.

Now i am trying to edit some code parts to avoid repeated parts (many IF conditions).

Is there a way to use a table with pointers and access the desired TextBuffer each time;

This topic has been closed for replies.
Best answer by Alexandre RENOUX

Hello,

What's your status ?

Your request does not seem to be related to TouchGFX in particular but more to C++ coding in general.

Have you tried using an array of pointers ?

/Alexandre

2 replies

Alexandre RENOUX
Alexandre RENOUXBest answer
Visitor II
August 17, 2020

Hello,

What's your status ?

Your request does not seem to be related to TouchGFX in particular but more to C++ coding in general.

Have you tried using an array of pointers ?

/Alexandre

SKokk.1
SKokk.1Author
Associate III
August 18, 2020

Sorry, i did not reply back.

Its solved using array of pointers. I had to refresh my C++ classes related part.