[Migrated content. Thread originally posted on 15 June 2010]
We are using acubench to develop. Currently we are converting a char system to gui and several of our programs have different windows depending upon linkage, sometimes they open no windows at all, and just do some processing if called. I was wondering if this was acceptable coding practice to handle these type of scenarios.
Before Program.
EVALUATE LNK-VAR
WHEN 1 PERFORM SOME ROUTINE
GOBACK | Or should be be doing a PERFORM Acu-Exit-Rtn ?
WHEN 9 PERFORM SOME OTHER ROUTINE
GOBACK
END-EVALUATE.
MAIN-Bef-Create.
EVALUATE LNK-VAR
WHEN 2 PERFORM Acu-OTHERWIN-Routine
PERFORM Acu-Exit-Rtn
WHEN 3 PERFORM Acu-EXTRAWIN-Routine
PERFORM Acu-Exit-Rtn
END-EVALUATE.
Code continues for MAIN WINDOW
Or maybe we should just be splitting these type of programs in to several separate Programs. Any thoughts?
Thanks for any insights.



