monica1
10th February 2005, 11:12
I have this code:

if tfcmg001.bank = "001" or tfcmg001.bank = "002" then
......
endif


If it's possible to define a constant to have the 2 constants, something like
#define BANKS ("'001", "002")


Thank you,

rrankinmba
10th February 2005, 14:48
Monica,

Try ...

#define BANKS (tfcmg001.bank = "001") or
(tfcmg001.bank = "002")

RAMSBaan
10th February 2005, 20:51
Try this way tooo

#define BANKS(bankcode)
tfcmg001.bank = ##bankcode##


Calling code

if BANKS(001) or BANKS(002) then