NewDate
Description
Creates a new pbdate data object.
Syntax
|
1 |
NewDate() |
Return value
pbdate.
Examples
This example tests whether a date value exists, and, if it does
not, it creates a new pbdate object and sets its value to the first day
in January, 1900:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
if (ci->pArgs->GetAt(0)->IsNull()) { pArguments[i].date_val = Session->NewDate(); Session->SetDate(pArguments[i].date_val, 1900,1,1); // Date: 1900-01-01 isNull[i]=true; } else { pArguments[i].date_val = ci->pArgs->GetAt(i)->GetDate(); isNull[i]=false; } |
Usage
The initial value is 1900-1-1.
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest