"timeFormat"

Changes the format of the time scale.

Synopsis

setValue(string shape, "timeFormat", int TrendNumber, bool NumLines, string Format1, string Format2);

shape.timeFormat(int TrendNumber, bool NumLines, string Format1, string Format2);

Parameters

Parameter Description
shape Name of the object
TrendNumber Number of the pertinent trend display range
NumLines TRUE=single spacing, FALSE=double spacing
Format1 Format string for the first line
Format2 Format string for the second line

Description

Changes the format of the time scale. The two lines can be formatted separately. The format of the lines is defined by two strings (a second string must also be passed for single spaced display). These strings can contain several parameters. The format for the string is:

[<string>][%Label][<string>]

Any number of parameters and strings can be mixed.

The following table lists the permissible labels and their meaning:

A format string "Today is the %d. %B" would return as follows: "Today is the 2nd of April" (for this date). Note that the format string is not displayed if it is too long to fit onto the screen

main()
{
  TREND1.timeFormat(0, TRUE, "%a %d. %m.", "");
}

Image: Date is shown for the Time Scale

Assignment

Trend