File Name
Syntax
AppendToString(REF Str:String, VAL xloc:Integer, VAL MaxLen:Integer, VAL PrnStr:String)
Parameters
Str - string to append
xloc - integer location
MaxLen - maximum length for string
PrnStr - string to be appending
Returns
Nothing
Side Effects
None
Description
This routine appends the PrnStr to Str at location xloc. It makes the length of PrnStr to be exactly MaxLen.
Dialog Forms Called
None
File Name
Syntax
CsvData2File(REF csvData: LIST OF STRING, VAL outFileName: STRING, VAL mode: STRING): INTEGER
Parameters
csvData - list of string to print to the selected destination.
outFileName - file name
mode - file mode, for instance, Create, Append
Returns
Integer - 0 for failure, 1 for success
Side Effects
None
Description
This routine opens the file in the correct mode, and prints the data received.
Dialog Forms Called
None
File Name
Syntax
GotoNextLine(VAL pheader:Boolean)
Parameters
pheader - Boolean that indicates whether to go to the next line or not
Returns
Nothing
Side Effects
None
Description
This routine detemines if it is time to go to a new line, and returns either a TRUE or FALSE.
Dialog Forms Called
None
File Name
Syntax
GotoNextPage(VAL pheader:Boolean)
Parameters
pheader - Boolean that indicates whether to go to the next page or not
Returns
Nothing
Side Effects
None
Description
This routine detemines if it is time to go to a new page, and returns either a TRUE or FALSE.
Dialog Forms Called
None
File Name
Syntax
InvRptSendToPrinter(REF csvData: LIST OF STRING, VAL invRptDest: INTEGER, VAL fileName: STRING, VAL msgToScreen: BOOLEAN): INTEGER
Parameters
csvData - list of string to print to the selected destination.
invRptDest - destination of printed report
fileName - file name if printing to a file
msgToScreen - Boolean if error messages are to be shown on the screen
Returns
Integer - 0 for failure, 1 for success
Side Effects
None
Description
This routine formats and prints the data it receives.
Dialog Forms Called
None
File Name
Syntax
max(VAL x1:Real, VAL x2:Real):Real
Parameters
x1 - length of object one
x2 - length of object two
Returns
Real that indicates maximum length
Side Effects
None
Description
This routine returns the maximum length from the two values passed in.
Dialog Forms Called
None
File Name
Syntax
min(VAL x1:Real, VAL x2:Real):Real
Parameters
x1 - length of object one
x2 - length of object two
Returns
Real that indicates minimum length
Side Effects
None
Description
This routine returns the minimum length from the two values passed in.
Dialog Forms Called
None
File Name
Syntax
PrintSelfFromScreen(VAL wh: WINDOW, VAL title: STRING, VAL printInfo: LIST OF ScreenPrintRec)
Parameters
wh - window handle
title - title of output
printInfo - screen print record with information for printing the dialog box
Returns
Nothing
Side Effects
None
Description
This routine uses the type of dialog box control being printed to correctly read and format data. This data is then printed to the selected destination.
Dialog Forms Called
None
File Name
Syntax
SendToPrinter(REF csvData: LIST OF STRING)
Parameters
csvData - list of string to print to the selected destination
Returns
Nothing
Side Effects
None
Description
This routine formats and prints the data it receives.
Dialog Forms Called
None