LB Booster
Programming >> Compatibility with LB4 >> missing right paren
http://lbb.conforums.com/index.cgi?board=compatibility&action=display&num=1422928163

missing right paren
Post by Alincon 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.
Re: missing right paren
Post by Richard Russell 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.
Re: missing right paren
Post by Alincon 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.


Re: missing right paren
Post by Alincon 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.
Re: missing right paren
Post by Richard Russell 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.