* New post Constructor Destructor and Inheritance& Array , Virtual base class in c++ language

Monday, 11 March 2013

0 VARIABLE

VARIABLE
When you declare a variable ,assign it one of the 12 vb primitives data types. The data types defines what kind of information will be stored in the variable.For instance the string data types is used for any alphanumeric or text char.The char datatypes is used for a single character. The boolean data types is used for binary values:true or false.And the date data types is used to store a value that represent both the date and time.
The next seven data types in the table are numeric data types .When you choose one of thase ,you should make sure that it is appropiate for the size and type of number that the variable must hold.If the number does not have digit to the right of the decimal points.
 CODING FOR ONLY NUMERIC NUMBER SUCH AS PRINT ONLY NUMBER NOT ALPHABETIC
 Dim a as string =""
private sub text changed(byval sender as system.objects,byval e as system.eventsargs)

If ISNUMERIC(textbox1.text)=true then
a= int(textbox1.text)
else
textbox1.text=a
end if
end sub
end class
 

0 comments:

Post a Comment

 

PROGRAMMINGqueen Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates

Blogger Widgets