
BBjWindow::addInputD
Description
In BBj 4.0 and higher, this method creates a date edit control on the BBjWindow.
Syntax
Return Value |
Method |
---|---|
addInputD(int id, int x, int y, int w, int h) |
|
addInputD(int id, int x, int y, int w, int h, string flags) |
|
addInputD(int id, int x, int y, int w, int h, string flags, string mask) |
|
addInputD(int id, int x, int y, int w, int h, string flags, string mask, string rules) |
|
addInputD(int id, int x, int y, int w, int h, string flags, string mask, string rules, int restore) |
|
addInputD(int id, int x, int y, int w, int h, string flags, string mask, string rules, int restore, int value) |
Parameters
Variable |
Description |
||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
id |
INPUTD control ID. |
||||||||||||||||||||||
X |
Horizontal position of the upper-left corner of the INPUTD control. |
||||||||||||||||||||||
Y |
Vertical position of the upper-left corner of the INPUTD control. |
||||||||||||||||||||||
W |
Width of the INPUTD control. |
||||||||||||||||||||||
H |
Height of the INPUTD control. To create a standard size control, set the h parameter to 0. |
||||||||||||||||||||||
flags |
Control flags, as follows:
|
||||||||||||||||||||||
mask |
Output mask. If specified as "", the current default date mask from STBL("!DATE") is used. See Date Input for complete rules. |
||||||||||||||||||||||
rules |
Input rules. If specified as "", the value in STBL("!IRULES") is used.
|
||||||||||||||||||||||
restore |
Restore value, specified as a Julian date. Use -1 for blank, 0 for today, or JUL(Y,M,D) for a particular date. |
||||||||||||||||||||||
val |
Initial value, specified as a Julian date. Use -1 for blank, 0 for today, or JUL(Y,M,D) for a particular date. |
Return Value
This method returns the created BBjInputD object.
Remarks
Accepts a date from the user.
Example
REM Create an InputD
control |
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.