Depends on wheter the tpppc232.desc field holds the number with leading zeros and is right aligned or not.
Suppose tccom001.emno is 1234.
If desc contains 1234bbSome description (b=blank) then use
Code:
if str$(tccom001.emno) = tpppc232.desc(1;6) then
If desc contains bb1234Some description (b=blank) then use
Code:
if edit$(tccom001.emno,"ZZZZZ9") = tpppc232.desc(1;6) then
If desc contains 001234Some description (b=blank) then use
Code:
if edit$(tccom001.emno,"999999") = tpppc232.desc(1;6) then