Try OpenEdge Now
skip to main content
Programming Interfaces
HLC Library Function Reference : Function reference : prowtbn( ) - Write DECIMAL Field

prowtbn( ) - Write DECIMAL Field

The prowtbn( ) function writes a decimal value, formatted as a character string, to a DECIMAL numeric field in a shared buffer.
On successful completion, prowtbn( ) returns 0; otherwise, it returns a non-zero value:


prowtbn ( pbufnam, fhandle, index, pvar, unknown )
char *pbufnam;
int fhandle;
int index;
char *pvar;
int unknown;
This input parameter points to the name of the specified shared buffer. You supply the name from your OpenEdge application.
This input parameter is the field handle that profldix( ) returns for the specified field.
This input parameter specifies an index value for an array field. If the field is not an array, you must set the value of index to 0.
This input parameter points to a buffer containing the character string value for the specified DECIMAL numeric field. The character string must be null-terminated.
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 pvar is assigned to the variable.
See Also:
profldix( ) - Return Field Handle, prordbn( ) - Read DECIMAL Field, prowtbc( ) - Write CHARACTER Field, prowtbd( ) - Write DATE Field, prowtbi( ) - Write INTEGER Field, prowtbl( ) - Write LOGICAL Field, prowtbr( ) - Write RECID Field