Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems calling functions

Status
Not open for further replies.

antdickens

Programmer
Nov 13, 2001
129
GB
I have created a function called process, which is basically

Function ccard(cardnumber As String, amount As Integer, issuenumber As Integer, expires As Integer, validfrom As Integer, cashback As Integer, transtype As Integer) As String

#########
code here
###########

end function


I call this function from a onclick event with this line

transaction = process(cardnumber, amount, issuenumber, expires, validfrom, cashback)

i keep getting an error saying compile error
expected variable or procedure, not module


this is really baffling but i am sure it has a simple resolutioin.


thanks in advance

ant
 
ant,

I don't suppose you've named the module and the function the same? Robbo ;-)
 
I have created a function called process, which is basically

Function ccard(cardnumber As String, amount As Integer, issuenumber As Integer, expires As Integer, validfrom As Integer, cashback As Integer, transtype As Integer) As String

#########
code here
###########

end function


I call this function from a onclick event with this line

transaction = process(cardnumber, amount, issuenumber, expires, validfrom, cashback)

BUT ... process <> ccard

I think they need to be the SAME in the declatation and the instantation.

MichaelRed
m.red@att.net

There is never time to do it right but there is always time to do it over
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top