LB Booster
« Version$ »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 03:31am



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
We apologize Conforums does not have any export functions to migrate data.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

Thank you Conforums members.
Speed up Liberty BASIC programs by up to ten times!
Compile Liberty BASIC programs to compact, standalone executables!
Overcome many of Liberty BASIC's bugs and limitations!
LB Booster Resources
LB Booster documentation
LB Booster Home Page
LB Booster technical Wiki
Just BASIC forum
BBC BASIC Home Page
Liberty BASIC forum (the original)

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: Version$  (Read 290 times)
Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx Version$
« Thread started 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

 
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Version$
« Reply #1 on: Nov 6th, 2016, 1:52pm »

on Nov 6th, 2016, 01:53am, Alincon wrote:
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 

Richard.
User IP Logged

Pages: 1  Notify Send Topic Print
« Previous Topic | Next Topic »

| |

This forum powered for FREE by Conforums ©
Terms of Service | Privacy Policy | Conforums Support | Parental Controls