LB Booster
Programming >> Compatibility with LB4 >> Version$ http://lbb.conforums.com/index.cgi?board=compatibility&action=display&num=1478397198 Version$
Post by Alincon on Nov 6th, 2016, 01:53am
Is anyone using the 'Version$' statement to maintain compatibility with LB?
Code:
if instr$(Version$,"LBB") > 0 then
.
else
Re: Version$
Post by Richard Russell on Nov 6th, 2016, 1:52pm
Is anyone using the 'Version$' statement to maintain compatibility with LB?
I have done, yes, most often when opening a serial port because the syntax for the port options - other than the basic settings - is different for LB and LBB:
Code:
if instr(Version$, "LBB") then
open "COM1:9600,n,8,1" for random as #serial
else
open "COM1:9600,n,8,1,ds0,cs0,rs" for random as #serial
end if