Basic4ppc - Error when compiling my program

jmich

Member
Licensed User
Longtime User
I'm still a beginner with Basic4ppc.

Have the following problem:

In my test program I created the following files:
math.sbp and math.bas.
The math.bas includes an expression parser and code as
math.sbp is the Form1 file

When I get compiling several error messages:
Error compiling program
Error description: Missing keyword: end sub End if occurrere on line 119
or
Error description: Missing keyword: End if occurrere loop on line 148

Where can I be wrong?

In the Annex, my project files


Greetings from Germany

Jmich
 

Attachments

  • Projekt1.zip
    3.8 KB · Views: 173

Zenerdiode

Active Member
Licensed User
Hello Jmich,

I was going to say 'Welcome to the forum' but you've been here since Jan 2008... :)

From the Basic4PPC help file,

There are no functions in Basic4ppc but instead every sub can return a value with the keyword "Return"

So all of your 'Private Functions' will firstly have to be re-written as Subs that you pass parameters to and return values if necessary.

Have you read the Basic4PPC Book?
 

klaus

Expert
Licensed User
Longtime User
Top