Problem with PRINTER class ???
Posted: Thu May 29, 2008 4:43 pm
I noticed a slight difference in the PRINTER class in FWH 8.05 and the previous versions.
Source in PRINTER class in FWH 8.05 :
Source in PRINTER class in previous versions :
There is a slight difference in the function "WriteProfString". Notice an extra comma behind <cModel + ",",>.
What is the right code ?
Thanks.
Regards.
Source in PRINTER class in FWH 8.05 :
Code: Select all
function SetPrintDefault( cModel )
local cDriver := StrToken( GetProfString( "Devices", cModel, "" ), 1, "," )
local cPort := StrToken( GetProfString( "Devices", cModel, "" ), 2, "," )
WriteProfString( "Windows", "Device", cModel + "," + cDriver + "," + cPort )
return nil
Code: Select all
function SetPrintDefault( cModel )
local cDriver := StrToken( GetProfString( "Devices", cModel, "" ), 1, "," )
local cPort := StrToken( GetProfString( "Devices", cModel, "" ), 2, "," )
WriteProfString( "Windows", "Device", cModel + ",", + cDriver + "," + cPort )
return nil
What is the right code ?
Thanks.
Regards.