>
Or even simpler, since getwordnum() in fact does the alltrim for you>
>Really? My testing does not show this to be the case.
>
>On my machine:
>
>?LEN( GETWORDNUM( ID(), 1, [#] ) )
>
>gives me 12
>
>?LEN( ALLTRIM( GETWORDNUM( ID(), 1, [#] ) ) )
>
>gives me 11
Yes, you're right. Bummer! I normally don't use the second parameter, and then I have found that alltrim() is not necessary. So I was sure the same thing would apply if you changed the word separator. However, I realize that VFP's behavior makes sense.