>Instead if I use the following command
>? Str(lnstansid,2)
>my problem is solved.
>
>But, in my project I have been using Alltrim at 100's of places. The
>ambiguity is creating doubts.
Rakesh,
From this and your other reply (asc(x)), there should be no problem. I don't know of any ambiguity with alltrim(). Perhaps there is something else going awry. Your 'solve' is restricting you to a specific maximum value (in the above case, 99).