public void MyFunc( int inVal1, int inVal2 = 52 ) {...}
// version 1public void MyFunc( int inVal1 ){// here's my default valueint inVal2 = 52;...}// version 2, with user-supplied valuepublic void MyFunc( int inVal1, int inVal2 ) { ... }
You will not be able to get around this in C#.
In VB, you could use the Optional keyword, but that will not create two
versions of your function (it places an attribute [opt] on the parameter),
which I believe is what you want. I imagne that Managed Extensions for C++
will give you the same result.
You could always place a property on your class that takes a boolean
value. This property, if set to true, would move the cursor appropriately
after the call to Write.
--
- Nicholas Paldino [.NET MVP]
- nicholas...@exisconsulting.com
"earwicker" <snowball...@hell.com> wrote in message
news:OWImrZHDCHA.2212@tkmsftngp02...