Author |
Topic: Works in LB, not in LBB (Read 1062 times) |
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
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: However in his code the OP is passing the first parameter of FILES without the drive letter, for example:
Code: 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: with:
Code: files "c:";foldName$, info2$( This will not affect compatibility with LB 4.04.
Richard.
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
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.
|
|
Logged
|
|
|
|
Alincon
Full Member
member is offline


Posts: 147
|
 |
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?
|
|
Logged
|
|
|
|
Richard Russell
Administrator
member is offline


Posts: 1348
|
 |
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.
|
|
|
|
Alincon
Full Member
member is offline


Posts: 147
|
 |
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"
|
|
Logged
|
|
|
|
|