InputBoxForDateTime - method of object Pm

Entering date and time (depending on the nStyle parameter) using the input window.
InputBoxForDateTime(sDlgTitle As String, nStyle As Long, vDateTime As Date) As Boolean
b = Pm.InputBoxForDateTime("sDlgTitle", nStyle, vDateTime)
sDlgTitle(String) Title of the window.
nStyle(Long) It is possible to enter the following styles:
&H100 - Set only the date (year, month, day).
&H200 - Set only the time (hour, minute, second).
&H10000000 - Window will be "Always on top".
vDateTime[for read and write] (Date)
on the calling: the preset value of date and time for the window.
after the calling: the entered value of date and time (if the window is closed by OK button).
Return Values:
true - If the window has been closed by the OK button.
false - If the window has been closed by the Cancel button.
Instead of using the InputBoxForDateTime method it is possible to use the customized input window by using the PmPanel object - see PreCfg - Preconfiguration examples, Preconfigurations Date and time inputbox for entering date and time.
This method is not so far functional for Web Panels.
Dim dtNew
dtNew = Now
If Pm.InputBoxForDateTime("Enter the time", 0, dtNew) Then
  'Date and time entered OK in the Date type variable
End If
- Pm
- Abs
- Cos
- E
- Exp
- InputBoxForDateTime
- LN2
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice