The prowtd( ) function writes a date value to a shared DATE variable.
On successful completion, prowtd( ) returns 0; otherwise, it returns a non-zero value:
Syntax
int
prowtd ( psymnam, index, year, month, day, unknown )
char *psymnam;
int index;
int year;
int month;
int day;
int unknown;
psymnam
This input parameter points to the name of the specified shared variable. You supply the name from your OpenEdge application.
index
This input parameter specifies an index value for an array variable. If the variable is not an array, you must set the value of index to 0.
year
This input parameter contains the year value for the specified DATE variable.
month
This input parameter contains the month value for the specified DATE variable.
day
This input parameter contains the day value for the specified DATE variable.
unknown
If this input parameter contains the value 1, the Unknown value (?) is assigned to the variable. If this input parameter contains the value 0, the input value contained in year, month, and day is assigned to the variable.