D
Douglas Buchanan
Newbie to donnet
This is an example of a structure given in vs.net help
============================
Private Structure Employee
Public GivenName As String ' This employee's given name.
Public FamilyName As String ' This employee's family name.
Public Extension As Long ' This employee's telephone extension.
Private Salary As Decimal ' This employee's annual salary.
Public Sub GiveRaise(Raise As Double) ' Raise this employee's
salary.
Salary *= Raise
End Sub
Public Event ReviewTime() ' This employee must be reviewed.
End Structure
============================
(I come from database application backgroud.)
The example given above stores emplyee information. Why bother storing
employee information in a structure if you are going to later put into
a database anyway. Why not just put it directly into a database. Or is
the example above just an impractical example?
Can someone give me an example for the use of a structures that
illustrates what its advantages are.
This is an example of a structure given in vs.net help
============================
Private Structure Employee
Public GivenName As String ' This employee's given name.
Public FamilyName As String ' This employee's family name.
Public Extension As Long ' This employee's telephone extension.
Private Salary As Decimal ' This employee's annual salary.
Public Sub GiveRaise(Raise As Double) ' Raise this employee's
salary.
Salary *= Raise
End Sub
Public Event ReviewTime() ' This employee must be reviewed.
End Structure
============================
(I come from database application backgroud.)
The example given above stores emplyee information. Why bother storing
employee information in a structure if you are going to later put into
a database anyway. Why not just put it directly into a database. Or is
the example above just an impractical example?
Can someone give me an example for the use of a structures that
illustrates what its advantages are.