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.
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.