Standard Library
COBOL Interface
These routines mainly provide an interface from C++ to the COBOL Library. They also provide additional functionality to COBOL programs. Following are the descriptions of these routines:
Key = 1 | Return difference in days between DateOne (CYMD) and DateTwo (CYMD) in Result (long) | |
Key = 2 | Convert DateOne (CYMD) to absolute Julian in Result (long) | |
Key = 3 | Convert DateOne (CYMD) to DateTwo (MM/DD/YY) and Result (MONTH DY, YEAR) | |
Key = 4 | Convert DateOne (Year:short/Julian:short) to DateTwo (CYMD) | |
Key = 5 | Convert DateOne (MM/DD/YY) to DateTwo (CYMD) and absolute julian in Result (long) | |
Key = 6 | Return current date in DateOne (MM/DD/YY), DateTwo (CYMD), and Result (MONTH DY, YEAR) | |
Key = 7 | Do DATEDF calculation (see routine for description) | |
Key = 8 | Do DATEGN calculation (see routine for description) | |
Key = 9 | Convert DateOne (YYYYMMDD) to DateTwo (CYMD) and absolute julian in Result (long) | |
Key = 10 | Convert absolute julian in Result (long) to DateOne (YYYYMMDD) and DateTwo (CYMD) | |
Key = 11 | Convert DateTwo (CYMD) to DateOne (YYYYMMDD) and absolute julian in Result (long) | |
Key = 12 | Return age (years) from DateOne (CYMD) in Result (long) | |
Key = 13 | Convert DateOne (YYYY-MM-DD) to DateTwo (CYMD) and absolute julian in Result (long) | |
Key = 14 | Convert DateOne (CYMD) to DateTwo (MM/DD/YY) and Result (DY MONTH, YEAR) | |
Key = 15 | Return current date in DateOne (MM/DD/YY), DateTwo (CYMD), and Result (DY MONTH, YEAR) | |
Key = 16 | Compute end of month from DateOne (CYMD) into DateTwo (CYMD) and absolute julian in Result (long) | |
Key = 17 | Return age (years) between DateOne (CYMD) and DateTwo (CYMD) in Result (long) | |
Key = 18 | Convert DateOne (MM/DD/YYYY) to DateTwo (CYMD) and absolute julian in Result (long) | |
Key = 19 | Convert DateOne (CYMD) to DateTwo (MM/DD/YYYY) and Result (MONTH DY, YEAR) | |
Key = 20 | Convert DateOne (CYMD) to DateTwo (MM/DD/YYYY) and Result (DY MONTH, YEAR) | |
Key = 21 | Return current date in DateOne (MM/DD/YYYY), DateTwo (CYMD), and Result (MONTH DY, YEAR) | |
Key = 22 | Return current date in DateOne (MM/DD/YYYY), DateTwo (CYMD), and Result (DY MONTH, YEAR) | |
Key = 23 | Convert DateOne (TDateCtrl) to DateTwo (CYMD) and absolute julian in Result (long) | |
Key = 24 | Convert DateTwo (CYMD) to DateOne (TDateCtrl) and absolute julian in Result (long) |
01 DATE-CALCULATION. 03 BEGIN-DATE. 05 BD-CENT PIC S99 USAGE COMP-5. 05 BD-YEAR PIC S99 USAGE COMP-5. 05 BD-MNTH PIC S99 USAGE COMP-5. 05 BD-DAY PIC S99 USAGE COMP-5. 03 END-DATE. 05 ED-CENT PIC S99 USAGE COMP-5. 05 ED-YEAR PIC S99 USAGE COMP-5. 05 ED-MNTH PIC S99 USAGE COMP-5. 05 ED-DAY PIC S99 USAGE COMP-5. 03 RESULT-DAYS PIC S9999 USAGE COMP-5. 03 RESULT-WEEKS PIC S9999 USAGE COMP-5 OCCURS 7 TIMES. 03 RESULT-MONTHS PIC S9999 USAGE COMP-5. 03 RESULT-YEARS PIC S9999 USAGE COMP-5. 03 BEGIN-WEEK-DAY PIC S9999 USAGE COMP-5. 03 END-WEEK-DAY PIC S9999 USAGE COMP-5.
01 DATE-GENERATION. 03 GENERATED-DATE OCCURS 15 TIMES. 05 GD-CENT PIC S99 USAGE COMP-5. 05 GD-YEAR PIC S99 USAGE COMP-5. 05 GD-MNTH PIC S99 USAGE COMP-5. 05 GD-DAY PIC S99 USAGE COMP-5.
int TListBox::Directory(UINT Attribute, LPCTSTR FileName)
FileName specifies the path of the directory, including any wild cards desired. Attribute specifies the attributes of the files that will be listed. Only FILE_ATTRIBUTE_DIRECTORY, FILE_ATTRIBUTE_HIDDEN, FILE_ATTRIBUTE_READONLY, and FILE_ATTRIBUTE_SYSTEM are observed, but more than one of these attributes may be specified. The value of the function is the number of entries in the ListBox control when the function completes.
[ Stand-alone Programs
| Standard Library
| Conversion Functions
| Utility Functions
| COBOL Functions
]
[ Windows NT Library
| COBOL Library
| Command Prompt Abbreviations
| Purchase Instructions
]
[ Home
| Areas of Expertise
| "We Do Windows"
| Clients and Projects
| Software Samples
| Package Software Available
]
[ Contact Information
| Business Software Philosophy
| Church Software Philosophy
]
All contents of this web site are Copyright © Titus Information Systems,
Inc., Phoenix, Arizona, U.S.A.