Pass named arguments

I thought I saw somewhere that named arguments were supported in Xojo. I can’t find it in the LG, though!

e.g.

[code]Sub DoSomething(v as Integer = 0, s as String = “”, i as byte = 0)
End Sub

DoSomething(s:“Hi Mom!”)

or

DoSomething(s:=“Hi Mom!”)

or

DoSomething(s=“Hi Mom!”)[/code]

These don’t seem to work. Maybe I was wrong about named arguments??

they are not directly supported… I think Norm posted a “trick” on his blog…

Take a look at Pair. It’s probably the best way to accomplish this. Then you can use a ParamArray of Pair for your method signature.

Keeping in mind that you sacrifice type checking this way.

Thanks, everyone!