General

185 posts

Data Type Summary (Visual Basic)

Visual Basic type Common language runtime type structure Nominal storage allocation Value range Boolean Boolean Depends on implementing platform TrueFalse Byte Byte 1 byte 0 through 255 (unsigned) Char (single character) Char 2 bytes 0 through 65535 (unsigned) Date   class=SpellE>DateTime 8 bytes 0:00:00 (midnight) on January 1, 0001 through 11:59:59 PM on December 31, 9999 Decimal Decimal 16 bytes 0 through +/-79,228,162,514,264,337,593,543,950,335 (+/-7.9…E+28) † with no decimal point; 0 through +/-7.9228162514264337593543950335 with 28 places […]

Controlling Variables in For Loops

The For and For Each loops let you define their controlling variable as a block variable, using this syntax: For i As Integer = 1 To 10 … Next This syntax was introduced in Visual Studio.NET 2003. Many books and articles, however, continue to use the old syntax: Dim i As Integer For i = 1 To 10    … Next The new syntax is preferred in all cases because it prevents you from accidentally reusing […]

I fixed our laptop!!!

Our old laptop has been giving us problems for about two years. When I am surfing the Internet, the laptop will freeze up unexpectedly, especially if I scroll the page up and down frequently, then the laptop will freeze up. I have tried several ways to fix the problem, but in vain. Here are the methods I have tried before: Reinstall Windows XP. Yeah, it is always our first choice when we deal with Windows […]

Windows users: how to secure your system

Many Windows users don't think much about the security of the Windows system they are using, because most of them have little knowledge of the potential security issues they are facing and think that Windows should handle the security automatically. The reality, however, is that the Windows system out-of-box has many security vulnerabilities which may be exploited by hackers to take control of user's computer to do more harmful things. For example, when you use […]