BBC BASIC for Windows
« REPEAT loops indentation »

Welcome Guest. Please Login or Register.
Apr 5th, 2018, 11:47pm



ATTENTION MEMBERS: Conforums will be closing it doors and discontinuing its service on April 15, 2018.
Ad-Free has been deactivated. Outstanding Ad-Free credits will be reimbursed to respective payment methods.

If you require a dump of the post on your message board, please come to the support board and request it.


Thank you Conforums members.

BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

« Previous Topic | Next Topic »
Pages: 1  Notify Send Topic Print
 thread  Author  Topic: REPEAT loops indentation  (Read 897 times)
chrispc
New Member
Image


member is offline

Avatar




PM


Posts: 19
xx Re: REPEAT loops indentation
« Reply #3 on: Nov 5th, 2014, 09:18am »

Thanks for your 2nd thought on the indentation. I looked at the Cross Reference and at first thought how great it was, then noticed that it told me that I had an unexpected ENDIF at row 562. Did that mean LINE 562? Because I haven't got one; I go from 560 to 570. What now?
chrispc
User IP Logged

rtr2
Guest
xx Re: REPEAT loops indentation
« Reply #4 on: Nov 5th, 2014, 10:40am »

on Nov 5th, 2014, 09:18am, chrispc wrote:
then noticed that it told me that I had an unexpected ENDIF at row 562. Did that mean LINE 562?

No, it meant what it said - row 562. The column and row numbers are displayed in the status bar:

http://www.bbcbasic.co.uk/bbcwin/manual/bbcwin1.html#cursor

'Modern' BASIC programs don't use line numbers, so they are not a useful way for the utility to report the location of an error.

Quote:
What now?

Be more trusting! The report of an 'unexpected ENDIF' in row 562 is almost certainly correct and would explain, at least in part, the misbehaving indentation.

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