Can Rich Display File coexist with traditional Display File?

This is the knowledgebase for Profound UI, all resolved support and product questions are located here. Please search this forum before posting any new support and technical questions.
Locked
Profound Logic
Site Admin
Posts: 252
Joined: Fri Dec 14, 2007 1:09 pm
Contact:

Can Rich Display File coexist with traditional Display File?

Post by Profound Logic »

Question:
Can Rich Display File coexist with traditional Display File within the same RPG program to cater to those two different environments?

Answer:
Yes, this is definitely possible. You can put the HANDLER keyword within an IF DEFINED directive. Then, you can compile the program for green-screen output as you would normally over the green-screen display file. When compiling the rich user interface copy of the same program over the rich display file, you can specify the OPTIONS(‘DEFINE(…)’) parameter to pick up the HANDLER keyword.

It is also possible with a little more programming to create 2 separately named display files (one for rich ui and one for green screens) with the UsrOpn keyword. Then, your program can OPEN the appropriate display file based on context. With this method, you will only have one program object.
Locked

Who is online

Users browsing this forum: No registered users and 5 guests