I'm trying to write some JSL code that will:
1) prompt user for starting and ending dates for range of data to initialized
2) create new table and have this table add the number of rows equal to end date - start date, initialize new column with dates that increment by 1 day per row.
Does anyone have any suggestions on how to accomplish this? I've included my test code so far. Thanks.
Ron
Dialog(
VList(
LineUp(2,
"Set Initial Date as mm/dd/yyyy", sdate=EditNumber(),
"Set Ending Date as mm/dd/yyyy", edate=EditNumber()),
HList(Button("OK"), Button("Cancel"))));
New Table( "Untitled 4",
Add Rows(edate-sdate ),
New Column( "Sequential Dates",
Numeric,
Continuous,
Format( "m/d/y", 12 ),
Input Format( "m/d/y" ),
Set Values(sequence(sdate,edate,1,0)
[]
)
)
)