multiple parameters in function

J

jodleren

Hi

I want to pass one or two parameters to a function, such as

function OpenDirSel(input, user)
{
}

The point: it does not work with 2 parameters, why?
Is there a way, that I can make the 2nd parameter optional?

WBR
Sonnich
 
H

Henry

Hi

I want to pass one or two parameters to a function, such as

function OpenDirSel(input, user)
{
}

The point: it does not work with 2 parameters, why?

It does "work" with 2 parameters.
Is there a way, that I can make the 2nd parameter optional?

The second parameter is already optional.

You are going to have to come up with a better question as that one
will not get you very far.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top