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