TAGs preprocessor

Hi,

I am Shivganesh from India. I will repeat the Q for my better understanding.

You have a program X.p in which you have to put Tag's for localization.

If this is the problem, there is one easy way by which u can do it.

create a new include file for eg A.i.

first include this file in X.p such that this is the fist line of the program. If you are using MFG/PRO let it be after mfdeclre.i.

In A.i write the following

&if "{1}" = "X.P" &Then
&GLOBAL-DEFINE X-P-TAG(N) "The code which is to be execauted"

(N) = Tag Number.
Note:- Remember the code which is to be excauted should be in one single line. If the code is not written in a single line then Progress will give an error.

Now this A.i can be used for some other programs also. for eg now you have to modify B.p. just append the below code.

&elseif "{1}" = "B.P" &then

&global-define B-P-TAG(N) "The code which is to be excusted".

Hope I have replied your query. If not please feel free to mail me at my id sg_hegde@hotmail.com

Have a nice day. :)

Regards,

Shivganesh
 
Back
Top