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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Procedure @ arguments

Status
Not open for further replies.

Tronsliver

Technical User
Sep 19, 2000
120
0
0
US
I need some help with properly coding a "Procedure" head and passing variables to it. Here is the Procedure heading:

Public Sub FulltimePosition(varx, vary As Integer)

Here is how I'm trying to call it:

FulltimePosition(610, 2)

However this isn't working I keep getting an error message before the compiler will except it.

Thanks for the assistance.
 
declare it like this:
Public Sub FulltimePosition(varx as Integer, vary As Integer)

Let me know how it goes.
John

 
John,

When I try to type in the calling code:

FulltimePosition (610, 2)

I get ' Compile Error expected = '
 
Thanks that did it....strange. I guess I'm too used to Pascal.
 
Hi.

If you want to use the brackets, put CALL in front of the
statement!

Gzep. ::)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top