Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Comparing types with an equal sign?
Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
GlobeTrotter




PostPosted: 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

Sponsor
Sponsor
Sponsor
sponsor
Display posts from previous:   
   Index -> Programming, Visual Basic and Other Basics -> Visual Basic Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 1 Posts ]
Jump to:   


Style:  
Search: