Click here to Skip to main content
15,914,417 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: word, save Pin
Torsten Mauz3-Feb-03 6:43
Torsten Mauz3-Feb-03 6:43 
QuestionVB 6 SQL problem ??? Pin
mixahlos31-Jan-03 15:07
mixahlos31-Jan-03 15:07 
AnswerRe: VB 6 SQL problem ??? Pin
Ray Cassick31-Jan-03 18:42
Ray Cassick31-Jan-03 18:42 
GeneralInheritance question… Pin
Ray Cassick31-Jan-03 9:43
Ray Cassick31-Jan-03 9:43 
GeneralRe: Inheritance question… Pin
Richard Deeming3-Feb-03 3:23
mveRichard Deeming3-Feb-03 3:23 
GeneralRe: Inheritance question… Pin
Ray Cassick6-Feb-03 7:21
Ray Cassick6-Feb-03 7:21 
GeneralRe: Inheritance question… Pin
mikasa4-Feb-03 8:50
mikasa4-Feb-03 8:50 
GeneralRe: Inheritance question… Pin
Ray Cassick4-Feb-03 9:37
Ray Cassick4-Feb-03 9:37 
I am taking a good look at what both of you have said...

I can understand why Richard Demming thinks that this would be very bad design, but in my defense I had a specific reason for doing it.

1 - The base class provides all but a very little part of the functionality of the library.

2 - The base library only exposes 3 classes that derive from the base class, and these classes can not be inherited from any further.

3 - The base class implementations of each method very only slightly in how certain database connections are handled based upon what class has inherited the base class.

4 - The bass class implementations are not really overridden. The derived class calls the base class implementations by using MyBase.Methodname.

I considered using an interface and some helper functions here in place of inheritance, but because the implementations are so close I was seeing the possibility for a lot of duplicated code.

As for your suggestions about using Enums, I totally agree Smile | :) I use enums wherever I can. In fact I have been accused of their overuse if you can imagine such a thing. I figure that, besides the other benefits, enums offer a way for the user to enter in parameters in a way that removes a large likelihood of error. They can't just make up values that way, but have to pick form a list.


Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."

George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."

Generalinteger Pin
pnpfriend31-Jan-03 3:57
pnpfriend31-Jan-03 3:57 
GeneralRe: integer Pin
Jason McBurney31-Jan-03 4:41
Jason McBurney31-Jan-03 4:41 
GeneralRe: integer Pin
pnpfriend31-Jan-03 9:29
pnpfriend31-Jan-03 9:29 
GeneralRe: integer Pin
xBlitzerx2-Feb-03 14:36
xBlitzerx2-Feb-03 14:36 
Generalquery on createobject Pin
shanksprasad31-Jan-03 2:03
shanksprasad31-Jan-03 2:03 
GeneralRe: query on createobject Pin
RichardGrimmer5-Feb-03 6:28
RichardGrimmer5-Feb-03 6:28 
GeneralRe: query on createobject Pin
manoj madahavan20-Feb-03 5:22
manoj madahavan20-Feb-03 5:22 
GeneralRe: query on createobject Pin
Paul Farry22-Feb-03 17:23
professionalPaul Farry22-Feb-03 17:23 
Generalproblem updating datagrid Pin
mcm31-Jan-03 1:32
mcm31-Jan-03 1:32 
GeneralRe: problem updating datagrid Pin
Don Benson2-Feb-03 17:00
Don Benson2-Feb-03 17:00 
GeneralRe: problem updating datagrid Pin
Anonymous3-Feb-03 1:20
Anonymous3-Feb-03 1:20 
GeneralRe: problem updating datagrid Pin
Don Benson3-Feb-03 17:03
Don Benson3-Feb-03 17:03 
GeneralCustom Designer... Pin
Julusian30-Jan-03 14:24
Julusian30-Jan-03 14:24 
GeneralPlanet Source Code Visual Basic 2002 CD Pin
shacks30-Jan-03 8:57
shacks30-Jan-03 8:57 
Generalmoving cursor to last (new) row in datagrid Pin
mcm30-Jan-03 6:23
mcm30-Jan-03 6:23 
Generalstructure Pin
pnpfriend30-Jan-03 5:18
pnpfriend30-Jan-03 5:18 
GeneralRe: structure Pin
Jeremy Falcon30-Jan-03 7:50
professionalJeremy Falcon30-Jan-03 7:50 

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.