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!

Functions

Status
Not open for further replies.

notreconised

Technical User
Jul 21, 2002
14
0
0
GB
Hoe do i pass a function
 
Hi,

If you are asking howe to pass a function's return value as an argument to another function then do this:

function FuncA() as string
FuncA = "MyString"
end function

function FuncB(byval AString as string) as integer
FuncB = len(AString)
end function

To pass FuncA's value to FuncB do this:

debug.print FuncB(FuncA())

Have a good one!
BK
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top