Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Structure Customer
Dim Name As String
Dim Address As String
Sub Clear()
Name = ""
Address = ""
End Sub
End Structure
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim c As New Customer
c.Name = "John Doe"
c.Address = "123 Main Street"
MessageBox.Show("Name: " & c.Name & " Address: " & c.Address)
c.Clear()
MessageBox.Show("Name: " & c.Name & " Address: " & c.Address)
End Sub
Public Structure YourStruct
Public Name As String
' ...
Public Telephone As String
Public Sub Clear()
Name = String.Empty
' ...
Telephone = String.Empty
End Sub
End Structure
progcompu said:Your program may be using structures currently but
the preferred way is to use classes.