Login Page - Create Account

Support Board


Date/Time: Tue, 26 Nov 2024 16:24:17 +0000



[Programming Help] - Setting a non-zero value via SetDate on a SCInputRef

View Count: 218

[2023-11-06 15:59:22]
User907967 - Posts: 54
Hi,

I struggle to initiate a SCInputRef variable with a specific date (different than 0). I read this page (Working with the SCDateTime Variables and Values: Date Values), but I am yet to be able to initiate a non-zero input variable using a format that involves year, month and date.

I appreciate your help.
[2023-11-08 21:19:16]
ForgivingComputers.com - Posts: 960
SCInputRef Today = sc.Input[0];
Today.SetDate(YMD_DATE(2023, 11, 8));

Date Time Of Last Edit: 2023-11-08 21:20:39

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

Login

Login Page - Create Account