Jump to content
NattyFido

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

Your content will need to be approved by a moderator

Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoticons maximum 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.

Loading...

×