>>>It's possible that Sergey's function didn't work with high ascii values either. Can you just test it with high ascii values?
>>
>>I tested your string with Sergey's function and it works in VFP.
>
>Thanks, Dmitry. So, we can conclude now that C# function is not exact equivalent of VFP code.
No. It is your conclusion, not mine. The C# function works for what I want.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham