Click here to Skip to main content
15,902,938 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: deleting a row in a datagrid Pin
Brian Lehmann3-Mar-03 10:44
Brian Lehmann3-Mar-03 10:44 
Generalgetting a single row in a dataview how Pin
DODO23-Feb-03 23:13
DODO23-Feb-03 23:13 
Generaloperation not allowed when object is closed Pin
mcm23-Feb-03 22:51
mcm23-Feb-03 22:51 
GeneralRe: operation not allowed when object is closed Pin
Hesham Amin24-Feb-03 3:36
Hesham Amin24-Feb-03 3:36 
GeneralNewbie question: Default installer path name Pin
Jim_the_M23-Feb-03 13:35
sussJim_the_M23-Feb-03 13:35 
Generalproblem in web client(redundant data added in uploaded file) Pin
yccheok23-Feb-03 11:12
yccheok23-Feb-03 11:12 
GeneralImplementing an interface (quandry)... Pin
Ray Cassick22-Feb-03 19:38
Ray Cassick22-Feb-03 19:38 
GeneralRe: Implementing an interface (quandry)... Pin
Jim Stewart22-Feb-03 20:11
Jim Stewart22-Feb-03 20:11 
The usefulness of interfaces is very similar to abstract base classes. The purpose of an interface is as a contract to consumer objects that a particular method or property (or event for that matter) will be present - including its signature. You want consumer objects to know that an object implementing the ILogEntry interface will have an AddEntry method (or several overloaded versions of it). With an abstract base class, this concept is no different. I usually only use the abstract base class when there is code common to the derived classes and I want to eliminate duplication. However, due to being limited to single inheritance, the interface becomes again useful.

Consider some of the included interfaces with the framework: IEnumerable promises that there is a GetEnumerator method (which returns an object that implements the IEnumerator interface) and nothing more. But in those instances where one wishes to enumerate a collection, this is what is required and expected.

As to your particular problem, it appears that you have two method signatures - and your interface supplies neither. This is what you need for this example:
Public Interface ILogEntry  
  Public AddEntry(varOne as String)
  Public AddEntry(varOne as String, varTwo as String)  
  .  
  .  
  .
End Interface

So long as the method signature matches, the compiler won't complain.

α.γεεκ

Fortune passes everywhere.
Duke Leto Atreides


GeneralRe: Implementing an interface (quandry)... Pin
Ray Cassick22-Feb-03 20:31
Ray Cassick22-Feb-03 20:31 
GeneralMSHFlexGrid's Pin
Andy H21-Feb-03 10:42
Andy H21-Feb-03 10:42 
Generaldisplaying a checkbox in access as a checkbox in vb Pin
mcm21-Feb-03 7:09
mcm21-Feb-03 7:09 
GeneralRe: displaying a checkbox in access as a checkbox in vb Pin
mikasa21-Feb-03 9:39
mikasa21-Feb-03 9:39 
GeneralVB.NET ComboBoxes Pin
mikasa21-Feb-03 2:37
mikasa21-Feb-03 2:37 
QuestionThis control array should work, right? Pin
David Williams20-Feb-03 10:21
David Williams20-Feb-03 10:21 
AnswerRe: This control array should work, right? Pin
Ray Cassick20-Feb-03 11:54
Ray Cassick20-Feb-03 11:54 
GeneralRe: This control array should work, right? Pin
David Williams21-Feb-03 9:25
David Williams21-Feb-03 9:25 
GeneralRe: This control array should work, right? Pin
David Williams21-Feb-03 9:27
David Williams21-Feb-03 9:27 
GeneralRe: This control array should work, right? Pin
mikasa21-Feb-03 9:40
mikasa21-Feb-03 9:40 
GeneralRe: This control array should work, right? Pin
David Williams21-Feb-03 10:18
David Williams21-Feb-03 10:18 
GeneralTry to send email Pin
Anonymous20-Feb-03 10:09
Anonymous20-Feb-03 10:09 
GeneralRe: Try to send email Pin
Nick Seng20-Feb-03 15:51
Nick Seng20-Feb-03 15:51 
GeneralRe: Try to send email Pin
Anonymous25-Feb-03 9:03
Anonymous25-Feb-03 9:03 
Generaltextbox loosing focus Pin
Anonymous20-Feb-03 9:06
Anonymous20-Feb-03 9:06 
GeneralRe: textbox loosing focus Pin
Jerome Conus20-Feb-03 19:29
Jerome Conus20-Feb-03 19:29 
GeneralRe: textbox loosing focus Pin
mikasa21-Feb-03 2:35
mikasa21-Feb-03 2:35 

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.