Pete,
Does it return 4 as a value though? You are supposed to do a left( lcStr, Dequote( len( lcStr ), @lcStr ) ) because the code is doing an in-place shuffle of the bytes and it can't directly alter the string length as far as VFP is concerned. This works for me:
declare integer DeQuote in dequote.dll integer nBufferLength, string @ cBuffer
lcData = 'Pete"'
lnNewLen = DeQuote( len( lcData ), @lcData )
? left( lcData, lnNewLen ) + "<"
>Hello David, I already checked your site and have used your dll method ( the def file ), thanks for that, BTW if I call your dequote function with 'Pete"' as a parameter value, I get 'Petee' returned