home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
viscobv6.zip
/
vac22os2
/
ibmcobol
/
samples
/
minivb
/
con1
/
con1nv.cbv
< prev
next >
Wrap
Text File
|
1997-11-19
|
4KB
|
108 lines
* Feature source code generation begins here...
* METHOD
IDENTIFICATION DIVISION.
METHOD-ID. "getCon1col1".
DATA DIVISION.
LOCAL-STORAGE SECTION.
LINKAGE SECTION.
01 Con1col1.
03 Con1col1-Length PIC 9(9) COMP-5.
03 Con1col1-String.
05 Con1col1-Chars PIC X
OCCURS 1 TO 255 TIMES
DEPENDING ON Con1col1-Length.
01 rc PIC S9(9) USAGE COMP-5.
PROCEDURE DIVISION
RETURNING Con1col1.
MOVE iCon1col1-Length TO Con1col1-length.
MOVE iCon1col1-String TO Con1col1-string.
GOBACK.
END METHOD "getCon1col1".
* METHOD
IDENTIFICATION DIVISION.
METHOD-ID. "setCon1col1".
DATA DIVISION.
LOCAL-STORAGE SECTION.
01 aCon1nv USAGE OBJECT REFERENCE con1nv.
01 event USAGE OBJECT REFERENCE CNotificationEvent.
01 con1col1Id USAGE POINTER.
LINKAGE SECTION.
01 Con1col1.
03 Con1col1-Length PIC 9(9) COMP-5.
03 Con1col1-String.
05 Con1col1-Chars PIC X
OCCURS 1 TO 255 TIMES
DEPENDING ON Con1col1-Length.
01 rc PIC S9(9) USAGE COMP-5.
PROCEDURE DIVISION USING Con1col1.
MOVE Con1col1-Length TO iCon1col1-length.
MOVE Con1col1-String TO iCon1col1-string.
INVOKE CNotificationEvent "somNew" returning event.
SET aCon1nv TO SELF.
INVOKE SELF "getCon1col1Id"
RETURNING con1col1Id.
INVOKE event "initializeNotificationEvent" USING
by value con1col1Id by value aCon1nv.
INVOKE SELF "notifyObservers" using by value event.
INVOKE event "somFree".
GOBACK.
END METHOD "setCon1col1".
* METHOD
IDENTIFICATION DIVISION.
METHOD-ID. "getCon1col2".
DATA DIVISION.
LOCAL-STORAGE SECTION.
LINKAGE SECTION.
01 Con1col2.
03 Con1col2-Length PIC 9(9) COMP-5.
03 Con1col2-String.
05 Con1col2-Chars PIC X
OCCURS 1 TO 255 TIMES
DEPENDING ON Con1col2-Length.
01 rc PIC S9(9) USAGE COMP-5.
PROCEDURE DIVISION
RETURNING Con1col2.
MOVE iCon1col2-Length TO Con1col2-length.
MOVE iCon1col2-String TO Con1col2-string.
GOBACK.
END METHOD "getCon1col2".
* METHOD
IDENTIFICATION DIVISION.
METHOD-ID. "setCon1col2".
DATA DIVISION.
LOCAL-STORAGE SECTION.
01 aCon1nv USAGE OBJECT REFERENCE con1nv.
01 event USAGE OBJECT REFERENCE CNotificationEvent.
01 con1col2Id USAGE POINTER.
LINKAGE SECTION.
01 Con1col2.
03 Con1col2-Length PIC 9(9) COMP-5.
03 Con1col2-String.
05 Con1col2-Chars PIC X
OCCURS 1 TO 255 TIMES
DEPENDING ON Con1col2-Length.
01 rc PIC S9(9) USAGE COMP-5.
PROCEDURE DIVISION USING Con1col2.
MOVE Con1col2-Length TO iCon1col2-length.
MOVE Con1col2-String TO iCon1col2-string.
INVOKE CNotificationEvent "somNew" returning event.
SET aCon1nv TO SELF.
INVOKE SELF "getCon1col2Id"
RETURNING con1col2Id.
INVOKE event "initializeNotificationEvent" USING
by value con1col2Id by value aCon1nv.
INVOKE SELF "notifyObservers" using by value event.
INVOKE event "somFree".
GOBACK.
END METHOD "setCon1col2".
* Feature source code generation ends here.