Computer Science Canada

Comparing types with an equal sign?

Author:  GlobeTrotter [ Sun Jun 05, 2005 3:52 pm ]
Post subject:  Comparing types with an equal sign?

Wy doesn't this code work/ how can I get around it. I want to check if all of the elements of a record are empty.

In a module:
VisualBASIC:

Public Type TestRecord
    stName As String
    iNumber As Integer
End Type


In the form
VisualBASIC:

Dim BlankRecord As TestRecord
Dim Test As TestRecord


Private Sub Form_Load()
    Test.stName = "hi"
    Test.iNumber = 9
   
    If Test = BlankRecord Then
        End
    End If
End Sub



: