Login Page - Create Account

Support Board


Date/Time: Tue, 16 Apr 2024 20:00:21 +0000



[Programming Help] - String Format in Drawing Label

View Count: 591

[2019-06-26 17:03:35]
User439067 - Posts: 48
      auto angle = angle_rads * 180 / 3.14;

      SCString angle_string;
      midpoint.Color = COLOR_RED;
      midpoint.Text.Format("Angle: ", angle);

Can you tell me how to fix this? The label shows "Angle:" without the double.
[2019-06-27 20:26:18]
mkata - Posts: 103
You're missing your format specifier:

midpoint.Text.Format("Angle: %f", angle);

To post a message in this thread, you need to log in with your Sierra Chart account:

Login

Login Page - Create Account