Womack Report

July 16, 2008

Visual Basic, July 16 2008

Filed under: General — Phillip Womack @ 8:19 pm

Talking about data structures today.  Attendance still dwindling.In VB, the programmer may create new data types, called user-defined data types.  There are two types of UDTs.  Structures, and classes.

Structures are containers for variables.  A structure can technically contain member variables, constants, and procedures.  Member variables are declared as “Public”.  The contents of the structure can then be accessed as <structure variable name>.<member variable name>

For instance, a structure variable declared as “house” might have member variables of “address”, “size”, and “price”.  To assign data to the price member variable, you would use a statement similar to “house.price = 150000”

No Comments

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress