GetScanConfigs Example for Visual FoxPro 6
#define L_LTWAIN_BUFFER_MODE 2
nRet = oRasterTwain.GetScanConfigs(1, L_LTWAIN_BUFFER_MODE, 5)
If nRet = 0 Then
MessageBox("GetScanConfigs method was successful.")
MessageBox("Scan Configuration count = " + Str(oRasterTwain.ScanConfigCount))
str = "Transfer Mode = " + Str(oRasterTwain.ScanConfig(0).TransferMode) + Chr(13) + ;
"File Format = " + Str(oRasterTwain.ScanConfig(0).FileFormat) + Chr(13) + ;
"Buffer Size = " + Str(oRasterTwain.ScanConfig(0).BufferSize) + Chr(13) + ;
"Required Time = " + Str(oRasterTwain.ScanConfig(0).RequiredTime)
MessageBox(str, 0, "Scan Configurations...")
Else
MessageBox("Error occurred in the GetScanConfigs method!!!", 0, "Error!!!")
EndIf