Why bring life to a 14 years old thread? If you want to compress a string, I strongly recommend VFPCompression which is totally free.
http://www.sweetpotatosoftware.com/spsblog/2008/12/08/VFPCompressionUpdateACoupleOfFixesAndASlightEnhancement.aspx>I have exactly the same problem and am scratching my head all along. Here is a sample of my code :
>
>Comp=CREATEOBJECT("XceedSoftware.XceedCompression")
>?oComp.License("xxxx")
>x=SPACE(100)
>?oComp.Compress("abhay",@x,.t.) && Returns 0
>?ocomp.GetErrorDescription(0) && Returns Operation completed successfuly.
>
>But the x variable remains blank. Nothing gets compressed at all.
>
>Just for this reason, I cannot decide for buying the Xceed component.
>
>Abhay