But you could put one container as a parameter, which contains your parameters. And then, in the code, you read the contents of your container. And as long as you provide a container for your method, it does not matter, what's in it.
| -----Ursprüngliche Nachricht----- | Von: johnn_16 [mailto:[EMAIL PROTECTED] | Gesendet: Dienstag, 28. Oktober 2003 16:01 | An: [EMAIL PROTECTED] | Betreff: [development-axapta] Can we skip default parameter | | | Hi, here's what I mean by skipping default parameter. I have a | method with 3 parameters and the last 2 one have default value. | | void method1(int Number1 , String Name1 = "Jonathan" , String Address | = "CityStreet") | { | } | | When I call that method, I just have to set the address | because "Jonathan" is what I want as Name1. I want to know if it's | possible (like in VB) to set the last parameter without setting the | second one. Something like: | method1(10 , , "NouvelleAdresse") | | Someone know if it's possible or not? | Any help will be appreciate | Thanks! | | | | | | | Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ | |
Yahoo! Groups Sponsor ADVERTISEMENT
click here
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

