Menu

Probelm with subroutine

Help
2016-11-29
2016-11-29
  • Edward LaBudde

    Edward LaBudde - 2016-11-29

    Hi am having a problem with a very simple sub

    Sub Scale (Sample as Word, Offset as Word)
    (Sample-Offset)1023/(1023-Offset)15
    End Sub

    'Call Scale (512, 100) ' If I add this line it says syntax error in sub calculation Line other wise no errors

     
  • Anobium

    Anobium - 2016-11-29

    That is not valid code. (Sample-Offset)1023/(1023-Offset)15?
    Where is the assignment?
    Also, expand the calculation to ensure you get the right order.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.