Hi there,
The functions provided by the GDxxx OCX are 1 character to long for
use in Visual Foxpro applications.
To get a correct String, strip 1 character at the end.
cGetSource=TwainGetSourceName(1)
cGoodVFPString=SUBSTR(cGetSource,1,LEN(cGetSource)-1)
The reason for that is that the TwainGetSourceName(x) function
returns a string with a chr(0) at the end !!! ( a string terminator in eg C++ )
You have to strip this 1 character in order to get a correct Foxpro string.
Hope this helps all you Foxpro addicts out there.
Greetings,
Leo
Getting Correct TwainSourceName string using VFP
Who is online
Users browsing this forum: No registered users and 2 guests