SETXDATE

 Purpose:

Specifies the x-axis coordinate range of a Window by date value.

Syntax:

SETXDATE(win, "xldate", "xrdate")

win

-

Optional. Window reference. Defaults to the current Window.

"xldate"

-

A string. Left-hand Window date.

"xrdate"

-

A string. Right-hand Window date.

Returns:

Nothing, the displayed x-axis coordinates are set in terms of date values.

Example:

W1:gnorm(1000, 1);setdate("1-1-2010");sethunits("daily");

setxdate(W1,"7-20-10", "8-24-2011");

 

creates a 1000 point series with horizontal time units of Daily. The starting date is 1-1-2010. The X axis is set to display data between 7-20-2010 and 8-24-2011.

Remarks:

SETXDATE will expand or compress the current units scale.

 

The horizontal units of the series must be a date unit such as Daily, Monthly or Yearly.

 

See SETXTIME to set the x-axis coordinates in time values.

 

See SETX to set the x-axis coordinates in terms of the delta-x between values.

 

See SETHUNITS to set the x-axis units to a date unit.

See Also:

GETXL

GETXR

GETXDATE

GETXTIME

SETX

SETHUNITS

SETXTIME