Source in PRINTER class in FWH 8.05 :
- Code: Select all Expand view RUN
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
Source in PRINTER class in previous versions :
- Code: Select all Expand view RUN
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
There is a slight difference in the function "WriteProfString". Notice an extra comma behind <cModel + ",",>.
What is the right code ?
Thanks.
Regards.