Support Board
Date/Time: Sat, 08 Feb 2025 04:46:18 +0000
Compilation error with GetTimeWithoutMilliseconds
View Count: 577
[2020-06-24 13:46:45] |
JM-JO - Posts: 38 |
I have updated SC to the latest version (2125) from a 3-month-old version. I decided to recompile an old source file (the DLL was working without recompiling though) and I get a strange compilation error from Sierra compiler : error: 'class SCDateTime' has no member named 'GetTimeWithoutMilliseconds'
The problem happens with following code: int timevalue = sc.BaseDataEndDateTime[sc.Index].GetTimeWithoutMilliseconds() ;
Can you suggest a solution ? |
[2020-06-24 19:05:34] |
|
This is the new function to use: Working with the SCDateTime Variables and Values: GetTimeInSecondsWithoutMilliseconds() 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 Date Time Of Last Edit: 2020-06-25 00:56:01
|
[2020-06-24 20:16:01] |
JM-JO - Posts: 38 |
I do not understand your answer since I use the same function you suggest, and it does not compile.
|
[2020-06-25 00:55:44] |
|
We apologize, as we were preparing the documentation for the updated function name, we were still using the old name. This is the correct function: Working with the SCDateTime Variables and Values: GetTimeInSecondsWithoutMilliseconds() Be sure to reload the page if needed. 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 |
To post a message in this thread, you need to log in with your Sierra Chart account: