Hi Ricardo,

                  Here i have tried to simulate your problem, the val you
can consider as your input string and ABC is the target enum in which you
are trying to find if the string val is there or not?

static void Job25(Args _args)
{
    str val;
    DictEnum    de;
    int         i;
    ;

    val = 'B';
    de = new DictEnum(enumnum(ABC));

    for(i=0; i<=de.values(); i++)
    {
        if (val == de.index2Label(i))
        {
            print 'present';
            break;
        }
    }
    pause;
}
If you still have some issue please let me know.

Regards
Ashish


On 9/11/07, ricardodegouveia <[EMAIL PROTECTED]> wrote:
>
>   Hi there,
>
> I was wondering how would you in code check a string against a enum.
> example:
>
> i have string value that comes in and i want to check the string value
> against the HRMSalutation enum or any enum to see if it is there and to
> get the index/value of it so i can update the empltable form to
> represent the new string value?
>
> thanking you in advance.
> Ricardo
>
> 
>


[Non-text portions of this message have been removed]

Reply via email to