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 :
function SetPrintDefault( cModel )
local cDriver := StrToken( GetProfString( "Devices", cModel, "" ), 1, "," )
local cPort := StrToken( GetProfString( "Devices", cModel, "" ), 2, "," )
WriteProfString( "Windows", "Device", cModel + "," + cDriver + "," + cPort )
return nilSource in PRINTER class in previous versions :
function SetPrintDefault( cModel )
local cDriver := StrToken( GetProfString( "Devices", cModel, "" ), 1, "," )
local cPort := StrToken( GetProfString( "Devices", cModel, "" ), 2, "," )
WriteProfString( "Windows", "Device", cModel + ",", + cDriver + "," + cPort )
return nilThere is a slight difference in the function "WriteProfString". Notice an extra comma behind <cModel + ",",>.
What is the right code ?
Thanks.
Regards.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 25.12 - Harbour 3.2.0 (May 2025) - xHarbour Builder (January 2020) - Bcc773