Thank you serge, Yes, examining the data in the field is what i'm trying to do. But I am very beginner.serge_girard wrote:Robbie,
May I suggest to examine to valueof vfield before using the Alltrim function; vfield is probably empty.
Serge
I need to clear EVERYTHING that is not an alpha-numeric character. Oddly, the exact code example I posted will work perfectly well when compiled in clipper/linker in DOS with the same sample data. Compiling in hmg won't work. I'm not saying HMG is the cause. merely that is seems to compile 'differently' or perhaps less forgiving of bad code?
Anyway, i still need a procedure that will examine the field and remove allnon alpha-numeric characters.. thinking about it... it needs to not only trim from both ends, but examine the entire string and remove/replace non alphanumeric characters that can be compiled in hmg unicode.
Do you know of the existence of such a procedure please??