Support Board
Date/Time: Sun, 22 Dec 2024 11:53:50 +0000
Post From: UseTool Text bug
[2015-08-04 20:58:25] |
User431614 - Posts: 4 |
What should I use with Text.Format()? When I type Previous_Close_ValueChars as SCString (per suggestion above) and pass to Text.Format(), as shown: Tool1.Text.Format("Previous Close: %s\nHigh EMA: %s\nLow EMA: %s", Previous_Close_ValueChars, EMA_Value1Chars, EMA_Value2Chars); I get this error... C:\SierraChart\ACS_Source\dmp_TradingMedium.cpp: In function 'void scsf_DailyComplexStudy(SCStudyInterfaceRef)': C:\SierraChart\ACS_Source\dmp_TradingMedium.cpp:238:153: error: cannot pass objects of non-trivially-copyable type 'class SCString' through '...' Tool1.Text.Format("Previous Close: %s\nHigh EMA: %s\nLow EMA: %s", Previous_Close_ValueChars, EMA_Value1Chars, EMA_Value2Chars); Oddly enough, I don't have this problem when I type Previous_Close_ValueChars as 'const char*' Date Time Of Last Edit: 2015-08-04 21:04:06
|