Page 1 of 1

another filter issue

Posted: Sat Jan 22, 2011 8:39 am
by BruceN
I have this line of code that doesn't work:

set filter to trim(&cField) $ aChoice

where aChoice := { 'MAIN' } (in later use it will be a larger array, I just wanted 1 element for testing)
and cField is declared as private cField:='storeid' (a valid field in the open data file)

it compiles fine, but hangs on that line when I run it.

Thoughts?

thanks

Re: another filter issue

Posted: Sat Jan 22, 2011 9:36 am
by BruceN
More filter issues... Am I overlooking something incredibly obvious?

set filter to ('|' + trim(storeid) + '|') $ '|MAIN|' works fine,

but if I set cChoice := '|MAIN|' and try

set filter to ('|'+ trim(storeid) + '|') $ cChoice it doesn't work.

????