Support Board
Date/Time: Wed, 27 Nov 2024 10:44:16 +0000
Post From: Code help, using a string instead of a constant
[2023-08-27 20:54:43] |
User431178 - Posts: 544 |
And again, the const char* DOES pick up the value of the input string as expected, but only the first time.
As I said before, const char* goes out of scope at the end of each iteration of the main loop, 100% guaranteed it is reading the value of the other inputs.The attached code works as expected (sligtly modified from what you posted), see also screenshot. |
alert formula string.png / V - Attached On 2023-08-27 20:54:29 UTC - Size: 74.25 KB - 111 views AlertString.cpp - Attached On 2023-08-27 20:54:38 UTC - Size: 1.6 KB - 162 views |