Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Function to calculate GST
#1
Solved: 10 Years, 9 Months, 4 Weeks ago
Hey guys,

Ive written a very simple function to check whether the GST that is calculated on a website is correct or not. The website displays the total value (cost including GST) and also the GST price seperately. Im just taking these values and inputting them into the following function -

Code:
Function Check_GST (theTotal, theGST)

standardGST = Get_GST(theTotal) [i](another function that i'm calling)[/i]
actual = theTotal - theGST
If (actual = standardGST )Then
    msgbox "this is tue"
else
    msgbox "this is NOT true"
End If    

End Function


Im calling this function from my script as -
Check_GST (total, GST)

but im getting the following syntax error message -
"Cannot use parentheses when calling a Sub"

Does anyone know why im getting this error and how i can rectify it?
Thanks,
Brian
Reply


Messages In This Thread
Function to calculate GST - by Brian - 04-15-2008, 04:25 PM
RE: Function to calculate GST - by niranjan - 04-15-2008, 07:00 PM
RE: Function to calculate GST - by Brian - 04-16-2008, 05:02 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Calling a function in a Test Script from a function library anupam4j 3 5,929 06-26-2015, 12:31 AM
Last Post: babu123
  Question how to calculate formula in the data sheet Arlequin 2 3,514 10-02-2010, 03:34 AM
Last Post: Arlequin
  To calculate the page load time using a user defined function Renu0113 3 6,346 09-30-2009, 09:59 AM
Last Post: Saket
  How to calculate total no of Edit box sudhirzpatil 5 4,033 02-04-2009, 03:53 PM
Last Post: Prafulla

Forum Jump:


Users browsing this thread: 1 Guest(s)