Re - Enum & String

Hi Everyone,

taxComponentTable.TaxType == TaxJournalTransLocal.TaxCode

Here TaxType is an Enum and TaxCode is a String…

Now how can i match those two to make the condition equal…

Regards,

Madhan

Hi,

Use enum2str() function.

Hi Madhan,

I did not get your question.

Where you are using this condition…

Either if condition or where condition…

Best Regards,

Senthil Billa…[H]

Hi Senthil,

i m using this in where condition…

Hi,

use str2Enum() function on right side the condition…

syntax: enum str2Enum(enum _type, str _text)

[Y] Manju…