LB Booster
« Works in LB, not in LBB »

Welcome Guest. Please Login or Register.
Apr 1st, 2018, 05:11am



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: Works in LB, not in LBB  (Read 1062 times)
Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Works in LB, not in LBB
« Reply #5 on: Jan 29th, 2015, 5:58pm »

on Jan 27th, 2015, 01:57am, Alincon wrote:
In this program LBB does not print the employee information line. (namLine$), but in LB those lines print.

OK, with the help of the OP I have tracked down the incompatibility. It arises because LBB assumes that the first parameter of the FILES statement will be a full path name, i.e. a string starting with the drive letter; for example:

Code:
    FILES "C:\path", info$() 

However in his code the OP is passing the first parameter of FILES without the drive letter, for example:

Code:
    FILES "\path", info$() 

This is causing LBB to misbehave.

The LB docs simply refer to the first parameter as pathSpec$; all of the examples include a drive letter but it isn't stated whether one should always be supplied.

I ought probably to modify LBB to be more compatible with LB in this respect, but in the meantime the problem is easily fixed in the OP's code by replacing:

Code:
    files foldName$, info2$( 

with:

Code:
    files "c:";foldName$, info2$( 

This will not affect compatibility with LB 4.04.

Richard.
« Last Edit: Jan 29th, 2015, 7:57pm by Richard Russell » User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Works in LB, not in LBB
« Reply #6 on: Jan 30th, 2015, 1:07pm »

on Jan 29th, 2015, 5:58pm, Richard Russell wrote:
I ought probably to modify LBB to be more compatible with LB

I've updated LBB to v2.86; it is no longer necessary for the first parameter of FILES to include the drive letter. The OP's program now runs without modification.

Richard.
User IP Logged

Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx Re: Works in LB, not in LBB
« Reply #7 on: Jan 31st, 2015, 8:36pm »

Good detective work. I never would have suspected that the drive letter was missing. I just took what FILES gave me.
Anyway, I expect that this fix should also explain why the second program I mentioned above does not work.
But where do I download 2.86?
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: Works in LB, not in LBB
« Reply #8 on: Jan 31st, 2015, 10:01pm »

on Jan 31st, 2015, 8:36pm, Alincon wrote:
But where do I download 2.86?

The usual place, i.e. at the LBB website. I've simply updated it 'in situ', which means anybody downloading LBB now will automatically pick up the latest version.

Richard.
« Last Edit: Jan 31st, 2015, 10:01pm by Richard Russell » User IP Logged

Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx It's baaaak
« Reply #9 on: Mar 5th, 2015, 02:22am »

The files command still omits the drive letter in v3.0; my program does not work unless I add it.

Code:
    fileName$ = "c:" + info$(index,0) + "\"+ areaTbl$(index)+".dat"
 
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