vbvariables - CIS 338: VB Variables Dr. Ralph D. Westfall...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
CIS 338: VB Variables Dr. Ralph D. Westfall April, 2009
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Variables a variable has the following: name (looks up its location in memory) must start with a letter (not a number) data type e.g., various types of numbers, character, boolean, etc. value (stored in the memory location) the value can change (it can vary ) "variable cloudiness"
Background image of page 2
Variable Naming Issues advantages of a convention makes code easier to debug and maintain? naming objects makes it easier for Prof. Westfall to grade projects (this is a hint!) disadvantages of a convention extra work (at 1 st , but less debugging later?)
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Integer VB.NET Variable Types Byte – unsigned integer: 0 to 255 Char – unsigned integer: 0 to 65,535 (Unicode) Short – same as Int16 –32768 to +32767 Integer – same as Int32 –2 billion to + 2 billion Long Int64 – same as Int64 –9 quintillion to +9 quintillion need to know that these data types are whole numbers (integers means no decimal points)
Background image of page 4
Decimal VB.NET Variable Types Single: 4 bytes, 6-digit accuracy Double: 8 bytes, 14-digit accuracy can have 300+ zeros before/after decimal Decimal: 12 bytes, 28-digit accuracy (fixed decimal point, data never rounds) can have <= 29 digits before decimal point or 27 zeros/digits after the decimal point
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Other VB.NET Variable Types String: "Lee" 2 billion character limit on string size! Char –
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 04/13/2009 for the course CIS 338 taught by Professor Westfall during the Winter '09 term at Cal Poly Pomona.

Page1 / 20

vbvariables - CIS 338: VB Variables Dr. Ralph D. Westfall...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online