Hello
I have a little designer question for you all...
when you want to make class-function you can do it in two ways:
*
*
Both these methods work without problems, but I would like to know which one is the best (or which one you prefer)
greetz
mim
I have a little designer question for you all...
when you want to make class-function you can do it in two ways:
*
Code:
public function AddArticle(byval Artno as string, byval Price as double)
'add article in article database with data given in
'parameters of the function
end function
Code:
'code in exe
dim article as clsarticle
article.artno = 'x1234'
article.price = 12.95
article.addArticle()
'code in class
public function AddArticle()
'add article in article database with data store in the
'properties of the instance of the class
end function
Both these methods work without problems, but I would like to know which one is the best (or which one you prefer)
greetz
mim