Here is some code:
DDS
RPG
For some reason, the window will always display whatever the title was set to before the first EXFMT. Is there some other DDS keyword to tell it to replace the TITLE value? After looking at other people's examples of windows, they are not coding for a WDWTITLE, but instead creating a field inside the window that they use for the title.
DDS
Code:
A R CALWIN A WINDOW(4 10 15 41 *NOMSGLIN) A WDWTITLE((*TEXT &TITLE40) (*COLOR W- A HT) (*DSPATR RI)) A WDWBORDER((*COLOR BLU) (*DSPATR RI)- A (*CHAR ' ')) A OVERLAY A CF12(12) A ROLLUP(70) A ROLLDOWN(71) A RTNCSRLOC(&CSRRCD &CSRFLD &CSRPOS) A RTNCSRLOC(*WINDOW &SCRROW &SCRCOL &- A WDWROW &WDWCOL) A TITLE40 40A P A** stuff A R DUMMMY ASSUME A KEEP A OVERLAY A 1 2' '
Code:
TITLE40 = 'First Title' exfmt CALWIN TITLE40 = 'Second Title' exfmt CALWIN
Comment