Support Board
Date/Time: Sat, 11 Jan 2025 02:08:50 +0000
[Programming Help] - How display string data on terminal
View Count: 1046
[2016-10-19 12:57:06] |
User429169 - Posts: 14 |
Hello, I am new to sierra chart API. I want to display string data on the terminal. This code displays nothing, it should display "Hello World". string text1 = "Hello World"; SCString TestString; TestString.Format("%s", "str:", text1); sc.GraphName.Append(TestString); Answers Appreciated |
[2016-10-19 17:35:04] |
Sierra Chart Engineering - Posts: 104368 |
This code is not correct. Refer to: http://www.sierrachart.com/index.php?page=doc/ACSILProgrammingConcepts.html#FormattedTextString We do not provide programming help. Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2016-10-19 17:56:56] |
User429169 - Posts: 14 |
I have tried the code from the link, it did not displayed on terminal. So, i changed the code(above). Just want to display tex1 data On the terminal string text1 = "Hello World"; Thank You. |
[2016-10-19 18:02:37] |
Sierra Chart Engineering - Posts: 104368 |
The simplest way to do this is as follows: sc.GraphName = "Hello"; Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2016-10-19 18:12:46] |
User429169 - Posts: 14 |
That i got it. But with C++ string text1 = "Hello World". How to pass text1 to sierra API. Thank You, Date Time Of Last Edit: 2016-10-19 18:13:36
|
[2016-10-19 18:24:10] |
Sierra Chart Engineering - Posts: 104368 |
This is one example: sc.GraphName = text1; Sierra Chart Support - Engineering Level Your definitive source for support. Other responses are from users. Try to keep your questions brief and to the point. Be aware of support policy: https://www.sierrachart.com/index.php?l=PostingInformation.php#GeneralInformation For the most reliable, advanced, and zero cost futures order routing, *change* to the Teton service: Sierra Chart Teton Futures Order Routing |
[2016-10-19 18:32:56] |
User429169 - Posts: 14 |
string text1 = "Hello World"; sc.GraphName = text1; After compiling, this the error. 1>SStudy.cpp(109): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'std::string' (or there is no acceptable conversion) |
[2016-10-22 07:53:50] |
User429169 - Posts: 14 |
This got working with reference. string text1 = "Hello World"; sc.GraphName.Format("%s", &text1); "/n" has no effect, it keep no displaying in same line for multiple strings. Can data be displayed in multiple lines? Thank You. |
To post a message in this thread, you need to log in with your Sierra Chart account: