another filter issue

This forum is for general support of Xbase++
Post Reply
Message
Author
BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

another filter issue

#1 Post 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
There are only 10 kinds of people - those who understand binary and those who don't :)

BruceN
Posts: 280
Joined: Thu Jan 28, 2010 7:46 am
Location: Slidell, LA

Re: another filter issue

#2 Post 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.

????
There are only 10 kinds of people - those who understand binary and those who don't :)

Post Reply