Know the loops…

Posted by Satyen Pandya | Posted in .Net | Posted on 19-05-2011

0

Normally, we use loops for repeating few lines of codes to achieve some definitive task. As far as good programming is concern, we are advised not to use goto statements. But internally, compiler generates the goto statements for the loop we have written.
In this post we see how different loops (While, For and Foreach) converted after compilation.

(1) while

The while statement executes a statement or a block of statements until a specified expression evaluates to false.

Example

class WhileTest
{
    static void Main()
    {
        int n = 1;
        while (n < 6)
        {
            Console.WriteLine("Current value of n is {0}", n);
            n++;
        }
    }
}
/*
    Output:
    Current value of n is 1
    Current value of n is 2
    Current value of n is 3
    Current value of n is 4
    Current value of n is 5
 */

Install VBA for Excel 2007

Posted by Satyen Pandya | Posted in MS Office, Windows | Posted on 14-05-2011

0

In the Excel 2007, you have to manually install VBA to be able to develop, maintain and update macros.

Here is the process of how to install VBA for Excel 2007.

Step 1: Click on the “Start” button at the bottom of your screen and chose “Control Panel”.
Picture1

Few things to know about Google Chrome book

Posted by Satyen Pandya | Posted in Miscellaneous | Posted on 14-05-2011

1

Hi, friends few days back there was an announcement made about Google Chromebook. Lets have a look at the Google Chromebook and its features…
gchrombook1
Search giant Google’s long-awaited laptop powered by its Chrome software is all set for launch. Dubbed Chromebooks, the laptops run on Google’s cloud-based operating system and expand its Web browser Chrome.

Related Posts Plugin for WordPress, Blogger...