>>I think your approach in trying to apply Viv and Sergey's code is wrong. You sent me a huge code that has not relevance to the issue of testing encoding and decoding. First, you should use Sergey's function (and not C function in the fll) because this is what Viv used as the basis for his code. Secondly you need to create a simple .txt file where you store a string to be encoded and decoded. Then apply Sergey's function to this simple test text file (that probably should include your high-ascii characters). Then apply Viv's function to the encoded string and see if the result is the same as original string.
>
>I do not see the reason of using a text file to test. Why we can not test just strings without files?
Because you have to be sure that you are comparing apples to apples. If you test on a memory string in VFP code, how do you know you are using the same memory string in C# code (Viv's code). By testing against a text file you know that you are using the same "base".
Capish? :)
"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