SetDate
Description
Resets the value of the specified pbdate object.
Syntax
|
1 |
SetDate (pbdate date, pbint year, pbint month, pbint day) |
|
Argument |
Description |
|---|---|
|
date |
The pbdate object to be reset |
|
year |
A year in the range 1000 to 3000 |
|
month |
A month in the range 1 to 12 |
|
day |
A day in the range 1 to 31 |
Return value
PBX_RESULT. PBX_OK for success or PBX_E_INVALID_ARGUMENT if the
new date is invalid.
Examples
This example sets the date to March 12, 1938:
|
1 |
session->SetDate(date_val, 1938, 3, 12); |
Usage
If the parameters are invalid, the date is reset to
1900-1-1.
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest