PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

This content has been translated automatically. Click here to view the French version.
  • Combination of masks
  • Available masks
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Defines the display mask for a level of time scale in a chart.
Example
// Displays the hours in 10h format
grTimeLevelMask(CHART_MyChart, grtlHour, "HHh")
Syntax
grTimeLevelMask(<Chart name> , <Time level> , <Mask>)
<Chart name>: Character string (with or without quotes)
Name of chart to use. This name corresponds to:
  • the chart name defined by programming with grCreate.
  • the name of Chart control found in the window editor or page editor.
Android Only the Chart controls are available.
<Time level>: Integer constant
Time level onto which the mask will be fixed:
grtlYearThe mask will be used on the years.
grtlHourThe mask will be used on the hours.
grtlDayThe mask will be used on the days.
grtlMillisecondThe mask will be used on the milliseconds.
grtlMinuteThe mask will be used on the minutes.
grtlMonthThe mask will be used on the months.
grtlSecondThe mask will be used on the seconds.
<Mask>: Character string (with quotes)
Mask to use.
Caution: The mask is applied to a single time level. Therefore, we advise you to specify it by using the data of this level only (for example, "HH" for the hour level or "YYYY" for the year level).
Remarks

Combination of masks

The masks can be combined in order to use a specific format. For example:
// Displays the months in month + year format
grTimeLevelMask(CHART_MyChart, grtlMonth, "Mmm YYYY")

Available masks

The available masks are as follows:
  • YYYY represents a 4-digit year.
  • YY represents a 2-digit date.
  • M represents the month (the zero is not displayed in front of the month number).
  • MM represents a 2-digit month.
  • MMM represents a 3-letter month (e.g., Jan). The case used depends on the linguistic options of the project.
  • Mmm represents a 3-letter month with the first letter in uppercase (e.g., Jan).
  • mmm represents a 3-letter month with the first letter in lowercase (e.g., jan).
  • MMMM represents the month as a full name (e.g., January). The case used depends on the linguistic options of the project.
  • Mmmm represents the month as a full name with the first letter in uppercase (e.g., January).
  • mmmm represents the month as a full name with the first letter in lowercase (e.g., january).
  • D represents the day without a leading zero.
  • DD represents a 2-digit day.
  • DDD represents a 3-letter day (e.g., Mon). The case used depends on the linguistic options of the project.
  • Ddd represents a 3-letter day with the first letter in uppercase (e.g., Mon).
  • ddd represents a 3-letter day with the first letter in lowercase (e.g., mon).
  • DDDD represents the day as a full name (e.g., Monday). The case used depends on the linguistic options of the project.
  • Dddd represents the day as a full name with the first letter in uppercase (e.g., Monday).
  • dddd represents the day as a full name with the first letter in lowercase (e.g., monday).
  • M represents the first letter of the day (e.g., M, T, W, T, F, SS).
  • HH represents the number of hours.
  • mm represents the number of minutes.
  • SS represents the number of seconds.
  • CC represents the number of hundredths of a second.
  • AP represents "AM" or "PM" (if "AP" is used, the time is displayed in 12-hour format).
Component : wd260grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment