BBC BASIC for Windows
« Re: HELP! Lots of different errors? »

Welcome Guest. Please Login or Register.
Apr 6th, 2018, 12:21am



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: Re: HELP! Lots of different errors?  (Read 544 times)
admin
Administrator
ImageImageImageImageImage


member is offline

Avatar




PM


Posts: 1145
xx Re: HELP! Lots of different errors?
« Reply #6 on: Apr 26th, 2013, 9:42pm »

on Apr 26th, 2013, 5:31pm, coolguy wrote:
when i try to use a Function instead of the Procedure, it comes up with a syntax error

You can't simply replace a procedure call with a function call because they are syntactically quite different. I listed in my previous reply an example of how to call the function; if you had used that it would have worked!

Quote:
IF Strength% OR Strength2%<=0 THEN PRINT "Negative strength entered!."

That's valid syntax, but is it really what you want to do? As shown the message will be printed whenever Strength% is non-zero (even if it's positive).

I think you would benefit from working through the Beginners' Tutorial (you can access it from the Help menu) to boost your level of understanding of the BASIC language.

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