Support Board
Date/Time: Wed, 27 Nov 2024 02:30:44 +0000
[Programming Help] - Setting SCString to clear/empty. Help appreciated.
View Count: 230
[2023-10-08 12:38:20] |
User92573 - Posts: 530 |
Dear Support Board. This is being used to update the Text on the: - GetUserDrawnDrawingByLineNumber - Line tool. I am setting an SCString to a selected value as follows: SCString Text; if(input_SelectText.GetInt() == 1) Text = "One"; else if(input_SelectText.GetInt() == 2) Text = "Two"; else if(input_SelectText.GetInt() == 3) Text = "Three"; else if(input_SelectText.GetInt() == 4) Text = ""; My issue that Text = "" doesn't clear the String but selecting any of the option that includes something updates to that value.
If I add a space " " then I end up with no text as such but that's simply because I added the space. How do I clear the String? I hope that makes sense. Any help appreciated. Many thanks. Date Time Of Last Edit: 2023-10-08 12:54:19
|
To post a message in this thread, you need to log in with your Sierra Chart account: