Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
C++ Classes in FLL
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00811004
Message ID:
00812034
Views:
37
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
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform