PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

New WINDEV, WEBDEV, WINDEV Mobile 23 feature!
  • 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, grntHour, "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:
grntYearThe mask will be used on the years.
grntHourThe mask will be used on the hours.
grntDayThe mask will be used on the days.
grntMillisecondThe mask will be used on the milliseconds.
grntMinuteThe mask will be used on the minutes.
grntMonthThe mask will be used on the months.
grntSecondThe 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, grntMonth, "Mmm YYYY")

Available masks

The available masks are as follows:
  • YYYY represent the year on 4 digits.
  • YY represent the date on 2 digits.
  • M represents the month (no zero is displayed in front of the month number).
  • MM represent the month on 2 digits.
  • MMM represent the month in letters on 3 characters (for example: jan). The case used depends on the linguistic options of project.
  • Mmm represent the month in letters on 3 characters with the first letter forced in uppercase (for example: Jan).
  • mmm represent the month in letters on 3 characters with the first letter forced in lowercase (for example: jan).
  • MMMM represent the full month in letters (for example: January). The case used depends on the linguistic options of project.
  • Mmmm represent the full month in letters with the first letter forced in uppercase (for example: January).
  • mmmm represent the full month in letters with the first letter forced in lowercase (for example: january).
  • D represents the day (no zero is displayed in front of the day number).
  • DD represent the day on 2 digits.
  • DDD represent the day in letters on 3 characters (for example: Mon). The case used depends on the linguistic options of project.
  • Ddd represent the day in letters on 3 characters with the first letter forced in uppercase (for example: Mon).
  • ddd represent the day in letters on 3 characters with the first letter forced in lowercase (for example: mon).
  • DDDD represent the full day in letters (for example: monday). The case used depends on the linguistic options of project.
  • Dddd represent the full day in letters with the first letter forced in uppercase (for example: Monday).
  • dddd represent the full day in letters with the first letter forced in lowercase (for example: monday).
  • M represents the first letter of the day (for example: M, T, W, T, F, S, S).
  • HH represent the number of hours.
  • mm represent the number of minutes.
  • SS represent the number of seconds.
  • CC represent the number of hundredths of a second.
  • AP represent "AM" or "PM" (if "AM" is found in the format, the time is displayed over 12 hours).
Components
WINDEVWEBDEV - Server codeReports and Queries wd230grf.dll
Linux wd230grf.so
Android wd230android.jar
Minimum required version
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment