Promotic

InputBoxForDateTime - method of the Pm object

Description:
Entering of date and time (depending on the nStyle parameter) using the input window.
Syntax:
Boolean InputBoxForDateTime(String sDlgTitle, Long nStyle, Date vDateTime)
Parameters:
sDlgTitle(String) Title of the window.
nStyle(Long) Bit flags defining window type and content.
Hexadecimal numbers can be entered by adding a prefix: for JavaScript it is 0x and for VBScript it is &H. For example, 0x10 or &H10 in hexadecimal represents 16 in decimal.
It is possible to enter the following styles or their combinations as a sum:
&H100 - Setting only the date (year, month, day).
&H200 - Setting only the time (hour, minute, second).
&H10000000 - Window will be "Always on top".
vDateTime[for read and write] (Date)
on the calling: the default value of date and time for the window.
after the calling: the entered value of date and time (if the window is closed by the "OK" button).
Return value:
true - If the window has been closed by the "OK" button.
false - If the window has been closed by the "Cancel" button.
Note:
Instead of using the InputBoxForDateTime method it is possible to use the customized input window by the PmaPanel object - see PreCfg - Preconfiguration examples, Preconfiguration "Date and time inputbox" for entering date and time.

This method is not functional in Web panels.
Example:
VBScriptSelect and copy to clipboard

Dim dtNew
dtNew = Pm.Time
If Pm.InputBoxForDateTime("Enter the time", 0, dtNew) Then
' Date and time entered OK in the variable of the Date type
End If
PROMOTIC 9.0.27 SCADA system documentation MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- InputBoxForDateTime
 
 
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r.o.