Problem with case stmt alternatives

R

RichardOnRails

Hi,

I posted my problem code on http://pastie.org/444466.

On lines 38-39 I have the code:
case colSymbol
when :Status || :Symbol || :TradeType || :Quantity || :price

As colSymbol assumes various Symbols as values, only the first one
seems to match.
The || symbols don't seem to work in this context.

Any ideas why not?

Thanks in Advance,
Richard
 
J

James Gray

On lines 38-39 I have the code:
case colSymbol
when :Status || :Symbol || :TradeType || :Quantity || :price

As colSymbol assumes various Symbols as values, only the first one
seems to match.
The || symbols don't seem to work in this context.

Any ideas why not?

Try:

when :Status, :Symbol, =85

James Edward Gray II=
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,763
Messages
2,569,562
Members
45,038
Latest member
OrderProperKetocapsules

Latest Threads

Top