Ok, I have these field values ANLG REG-ANALOG REGULAR,
DIG RBLD-DIGITAL REBUILD,DBS NATIONAL, DIG REG CMTY-DIGITAL REGULAR COMMUNITY SPECIFIC.But I need to show only the value before the - and if the - is not there then only the regular value. My formula
if (instr({Command.t_field_value},'-'))> 0 then
TrimRight (left({Command.t_field_value},(instr({Command.t_field_value},'-'))))
else
{Command.t_field_value}
gives me what I want except with a dash. If I user
Thanks,
Hamida