The following block of code produces the error "Too many arguments". I know this is due to the number of variables I have in the 'inlist(discode1)' routine.
Is there a way I can get around this?
Thanks
SELECT PASS6
SCAN
STORE exp_1 TO m.keyfld
SELECT applcnt
IF SEEK(m.keyfld)AND INLIST(discode1,'85400','95901','343','3152',;
'318','V62.89','317','7421','3170',;
'3180','854','742.4','34500','7834',;
'759.81','3182','759.89','780.39',;
'3181','3453','8530','7581','740.0',;
'742.3','742.4','758.2','759.81')
store keyfld TO m.keyfld
STORE discode1 TO m.discode1
INSERT INTO dev_delay (keyfld,discode1)VALUES (m.keyfld,m.discode1)
ENDIF
ENDSCAN
Is there a way I can get around this?
Thanks
SELECT PASS6
SCAN
STORE exp_1 TO m.keyfld
SELECT applcnt
IF SEEK(m.keyfld)AND INLIST(discode1,'85400','95901','343','3152',;
'318','V62.89','317','7421','3170',;
'3180','854','742.4','34500','7834',;
'759.81','3182','759.89','780.39',;
'3181','3453','8530','7581','740.0',;
'742.3','742.4','758.2','759.81')
store keyfld TO m.keyfld
STORE discode1 TO m.discode1
INSERT INTO dev_delay (keyfld,discode1)VALUES (m.keyfld,m.discode1)
ENDIF
ENDSCAN