Click here to Skip to main content
15,884,010 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionModules don't like Overloading Pin
Clark Kent1237-Mar-12 8:43
professionalClark Kent1237-Mar-12 8:43 
AnswerRe: Modules don't like Overloading Pin
Eddy Vluggen7-Mar-12 11:10
professionalEddy Vluggen7-Mar-12 11:10 
AnswerRe: Modules don't like Overloading Pin
Simon_Whale7-Mar-12 11:28
Simon_Whale7-Mar-12 11:28 
QuestionRe: Modules don't like Overloading Pin
Clark Kent1238-Mar-12 1:35
professionalClark Kent1238-Mar-12 1:35 
AnswerRe: Modules don't like Overloading Pin
Simon_Whale8-Mar-12 1:49
Simon_Whale8-Mar-12 1:49 
GeneralRe: Modules don't like Overloading Pin
Clark Kent1238-Mar-12 3:42
professionalClark Kent1238-Mar-12 3:42 
GeneralRe: Modules don't like Overloading Pin
Simon_Whale8-Mar-12 3:48
Simon_Whale8-Mar-12 3:48 
AnswerRe: Modules don't like Overloading Pin
Dave Kreskowiak7-Mar-12 11:59
mveDave Kreskowiak7-Mar-12 11:59 
You don't have to put the Overload keyword in there unless yuo're inheriting from a base class and overloading a base method.

You just do this in a Module and it works fine:
Public Function Add(ByVal parm1 As Object, ByVal parm2 As Object) As Object
    Return parm1 + parm2
End Function

Public Function Add(ByVal parm1 As Integer, ByVal parm2 As Integer) As Integer
    Return parm1 + parm2
End Function


Truthfully, I would not be using Object as one of these overloads. You're casting too big of a net catching case that you didn't overload with that one.

QuestionRe: Modules don't like Overloading Pin
Clark Kent1238-Mar-12 1:31
professionalClark Kent1238-Mar-12 1:31 
AnswerRe: Modules don't like Overloading Pin
Dave Kreskowiak8-Mar-12 3:14
mveDave Kreskowiak8-Mar-12 3:14 
QuestionForce the vertical scrollbar down Pin
Brandon-X120007-Mar-12 2:39
Brandon-X120007-Mar-12 2:39 
AnswerRe: Force the vertical scrollbar down Pin
Dave Kreskowiak7-Mar-12 3:37
mveDave Kreskowiak7-Mar-12 3:37 
GeneralRe: Force the vertical scrollbar down Pin
Brandon-X120007-Mar-12 5:35
Brandon-X120007-Mar-12 5:35 
GeneralRe: Force the vertical scrollbar down Pin
Dave Kreskowiak7-Mar-12 7:05
mveDave Kreskowiak7-Mar-12 7:05 
QuestionHow to check the double vaue is "1.#QNAN"? Pin
lavate malllik6-Mar-12 22:03
lavate malllik6-Mar-12 22:03 
AnswerRe: How to check the double vaue is "1.#QNAN"? Pin
Simon_Whale6-Mar-12 22:57
Simon_Whale6-Mar-12 22:57 
GeneralRe: How to check the double vaue is "1.#QNAN"? Pin
lavate malllik6-Mar-12 23:18
lavate malllik6-Mar-12 23:18 
QuestionThread Problem? Pin
Midnight Ahri5-Mar-12 15:29
Midnight Ahri5-Mar-12 15:29 
AnswerRe: Thread Problem? Pin
Dave Kreskowiak5-Mar-12 15:59
mveDave Kreskowiak5-Mar-12 15:59 
AnswerRe: Thread Problem? Pin
Luc Pattyn5-Mar-12 17:02
sitebuilderLuc Pattyn5-Mar-12 17:02 
GeneralRe: Thread Problem? Pin
Dave Kreskowiak5-Mar-12 17:04
mveDave Kreskowiak5-Mar-12 17:04 
GeneralRe: Thread Problem? Pin
Luc Pattyn5-Mar-12 17:15
sitebuilderLuc Pattyn5-Mar-12 17:15 
GeneralOT Pin
cptKoala5-Mar-12 20:52
cptKoala5-Mar-12 20:52 
GeneralRe: OT Pin
Dave Kreskowiak6-Mar-12 4:39
mveDave Kreskowiak6-Mar-12 4:39 
GeneralRe: Thread Problem? Pin
Dave Kreskowiak6-Mar-12 4:38
mveDave Kreskowiak6-Mar-12 4:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.