issue with using Preprocessor across programs

DivyaRajesh

New Member
Hi all,

Is it posiible to pass the pre-processor defintions across programs (from one .p to another)

Regards,
divya
 

Ramkumar V

New Member
&glob pre-ex "ram".
def var glob_pre as char no-undo.
glob_pre = {&pre-ex} .
run x.p glob_pre .

--------
x1.p

disp " {1} " .


Rgds,
R.!





Hi all,

Is it posiible to pass the pre-processor defintions across programs (from one .p to another)

Regards,
divya
 

DivyaRajesh

New Member
Hi..

I am trying to make a customized browse and I am using a shared temp-table.

My browse is working fine. The issue is with its label.
say I have 2 fields on my input screen. the label of one is 'XYZ' and the label for other is 'PQR'
the lebel of my browse field should change accordingly. is it possible to use pre-processors for temp-table fields

I want to do something like this

&SCOPED-DEFINE PP_FRAME_NAME a
DEFINE TEMP-TABLE TMP_HLP
FIELDS tmp_lbl as character.
def var i as int .
def var a as char.
update i.
for each tmp_hlp:
if i = 1 then
do:
&SCOPED-DEFINE rcrp13_p_15 "Hiii"
tmp_lbl = "145".
display tmp_lbl with frame {&PP_FRAME_NAME}.
tmp_lbl:column-label = {&rcrp13_p_15}.
end.
else
do:
&SCOPED-DEFINE rcrp13_p_15 "hELLO"
tmp_lbl = "145".
display tmp_lbl with frame {&PP_FRAME_NAME}.
tmp_lbl:column-label = {&rcrp13_p_15}.
end.
end.
 
Top