> From: Ed Leafe <[EMAIL PROTECTED]>

> > Overloading?
> >
> > Like this:
> >
> > void setanswer(String answer){
> >         }
> >
> > void setanswer(String answer, String title){
> >         }
> >
> > or This?
> >
> > void setanswer(String answer){
> >         }
> >
> > void setanswer(String title){
> >         }
>
>       Both. And also:
>
> void setanswer(String answer){
>          }
>
> void setanswer(Int style){
>          }

The only wrong answer was changing the param name.  You can do that in
VS, but only the bottom one is used?  I forget if it's the bottom or
the most recent addition that overrides the former one.  Anyway the
compiler ignores the dupe.  If your on your call to that method, you
can rt click it and go to the method itself and verify which one it's
hitting.

But to overload setanswer 15 different ways is no problem, and when
necessary it's fantastic that you can!

My data tier has 10+ overloads when dealing with SaveDataSet.  You pass
the ds, and it will save all tables, pass in a table name as well and
just that table's updates are saved.  Add a row param and just that
row.





_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to