Progress
External Program
Interfaces


prowtn() - Write DECIMAL Variable

The prowtn() function writes a decimal value, formatted as a character string, to a shared DECIMAL numeric variable.

On successful completion, prowtn() returns 0; otherwise, it returns a non-zero value:

SYNTAX

int 
prowtn ( psymnam, index, pvar, unknown )
  char *psymnam;
  int   index;
  char *pvar;
  int   unknown; 

psymnam

This input parameter points to the name of the specified shared variable. You supply the name from your Progress 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.

pvar

This input parameter points to a buffer containing the character string value for the specified DECIMAL numeric variable. The character string must be null terminated.

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 pvar is assigned to the variable.

SEE ALSO

prortn(), prowtc() - Write CHARACTER Variable, prowtd() - Write DATE Variable,
prowti() - Write INTEGER Variable, prowtl() - Write LOGICAL Variable, prowtr() - Write RECID Variable


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095