Highlighted
Absent Member.
Absent Member.
202 views

[archive] Tabbed Screens

[Migrated content. Thread originally posted on 31 March 2005]

I am new to AcuCobol and using AcuBench, trying to code my first system, going fairly well, until I work with tabbed screens. I have three tabs all with entry fields, trying to update a record, when I go to say tab 2 and try to make changed to one of the fields, I can't get the information out to write back to my record. HELP.

I have tried to INQUIRE on each field in each page and that does seem to work, but there has to be a better way to get the information back to my record. Is this the correct way to do it or is there an easier way?
0 Likes
2 Replies
Highlighted
Absent Member.
Absent Member.

RE: [archive] Tabbed Screens

If you want to use an event procedure to trigger your record update set the NTF-CHANGE property of the entry field to TRUE. This will trigger the NTF-CHANGE event everytime a character is keyed into the field but you can ignore this. It will have the effect of immediately updating the working storage variable field associated with the entry field and the data will be there when you execute the record update.

Also do not attempt to have two or more GUI controls share the same working storage variable as is possible with the text based screen section's USING and FROM/TO clauses.
0 Likes
Highlighted
Absent Member.
Absent Member.

RE: [archive] Tabbed Screens

Thanks everyone, I got it to work.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.