problem with specifying a default value
|
| View previous topic :: View next topic |
| Author |
Message |
Peter Pitt
Joined: 20 May 2006 Posts: 114 Location: Egypt
|
Can anyone tell me the syntax for specifying a default value for a parameter to a function.
When I do function foobar(moo, hax = 123).
I get syntax errors.
Firefox says:
Error: missing ) after formal parameters.
Source Code:
Function SwapToForm(el, method = "post").
And points to the = sign.
Any ideas? |
| |
|
|
|
|
|
|