Gil,
You don't need the alltrim(), val stops at the first nonnumberic character. The int() is only needed if it's possible there is a decimal point and digits after it.
>Is there a Better way to do int(val(alltrim(cvar)))?, as in:
>
>cvar = '94567 '
>nvar = 'int(val(alltrim(cvar)))'