Jump to content

Cannot Get Program To Compile

Recommended Posts

I was very surprised to find that my first program with SourceBoost Basic compiled and ran with no problems, well done on making it very intuitive.


Now I am trying something a little more complex and I am stuck.

sub control_temp( temp1 as word, temp2 as word, t1 as word, t2 as word, t3 as word, t4 as word )
if temp1 >= t1 then portc.6 = 1
if temp1 <= t2 then portc.6 = 0
if temp1 <= t3 then portc.7 = 1
if temp1 >= t4 then portc.7 = 0
end sub

None of these IF statements will compile! I have tried putting the comparison (temp1 >= t1) in brackets but still no luck.

Share this post

Link to post
Share on other sites

Don't forget to close your "If" statements with "End If".





Share this post

Link to post
Share on other sites

Join the conversation

You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...