LB Booster
« missing right paren »

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



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: missing right paren  (Read 599 times)
Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx missing right paren
« Thread started on: Feb 3rd, 2015, 12:49am »

What is wrong with this statement? It seems to have a right paren, but LBB says not. Works in LB4

Code:
sort descTbl$(1,t)
 


r.m.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: missing right paren
« Reply #1 on: Feb 3rd, 2015, 08:52am »

on Feb 3rd, 2015, 12:49am, Alincon wrote:
What is wrong with this statement? It seems to have a right paren, but LBB says not. Works in LB4 Code:
sort descTbl$(1,t) 

It doesn't work in LB4, it reports Compile halted: Missing expression.

The syntax of the SORT statement is:

Code:
SORT arrayName(), start, end, [column] 

Richard.
User IP Logged

Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx Re: missing right paren
« Reply #2 on: Feb 3rd, 2015, 2:41pm »

Well, it does work in LB4 without a right paren.

I should have noted that LBB first told me to add the right paren.
I added it, tried again, and the error message is "missing )"

r.m.

User IP Logged

Alincon
Full Member
ImageImageImage


member is offline

Avatar




PM


Posts: 147
xx Re: missing right paren
« Reply #3 on: Feb 3rd, 2015, 8:48pm »

Oops. I guess I put the right paren in the wrong place.
This works in both LB4 and LBB:

Code:
sort descTbl$(),1,t
 


r.m.
User IP Logged

Richard Russell
Administrator
ImageImageImageImageImage


member is offline

Avatar




Homepage PM


Posts: 1348
xx Re: missing right paren
« Reply #4 on: Feb 3rd, 2015, 9:14pm »

on Feb 3rd, 2015, 2:41pm, Alincon wrote:
Well, it does work in LB4 without a right paren.

This works in LBB too; my preference is to include the right parenthesis, but it's optional:

Code:
sort descTbl$(,1,t 

If you have discovered an incompatibility between LB4 and LBB in respect of the SORT statement, what is it?

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