PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN

  • Combination of masks
  • Available masks
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Defines the display mask for a level of time scale in a chart.
Remark: This function can be used with the <Chart>.TimeLevelMax function which allows to define the number of levels to be displayed in the time scale of a graph.
Example
// Affiche les heures sous la forme 10h
GRF_MonGraphe.NiveauTemporelMasque(grntHeure, "HHh")
// Définition de l'échelle temporelle pour afficher plusieurs valeur par mois
// mais en affichant uniquement les mois dans l'échelle
// (les jours ne sont pas affichés)
GRF_MonGraphe.NiveauTemporelMasque(grntMois, "Mmm")
GRF_MonGraphe.NiveauTemporelMax(1, grntMois)
Syntax
<Chart control>.TimeLevelMask(<Time level> , <Mask>)
<Chart control>: Control name
Name of the Chart control to use (found in the window editor or the page editor).
<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
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:
// Affiche les mois sous la forme mois + année
GRF_MonGraphe.NiveauTemporelMasque(grntMois, "Mmm AAAA")

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: wd270grf.dll
Minimum version required
  • Version 23
This page is also available for…
Comments
Click [Add] to post a comment