Calling Enum Field...?

Hi All,

I have an Enum field

Table Name ----------- “Cash”

Field Name ----------- " Currency" ( i.e Enum Field)

now i want to call this field in a If statement like

if(Cash.Currency == “Dollor”)

{

}

when i wrote the above showing error as " the operand types are not compatible with the Operator"

Share your Suggetions…

Thanks In advance…[:)]

Hi Bobby,

use the Enum of Currency i.e if enum for currency is Currency::Dollar

if(Cash.Currency == Currency::Dollar)

{

}

Naresh Kolli

Use Currency::Dollar

Hi Kranthi & Naresh,

Thank you.