Computer Software

eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
Business & Money
Technology
Women
Health
Education
Family
Travel
Cars
Entertainment
Featured Sites
SD Editorials
Online Guide and article directory site.
Foodeditorials.com
Over 15,000 recipes & editorials on food.
Lyricadvisor.com
Get 100,000 Lyric & Albums.
  • Business & Money
    • A Guide to Business
    • Guide to Finance
    • Ideas for Marketing
    • Legal Guide
    • Guide to Insurance
    • Lettre De Motivation
    • Guide to the Stock Market
    • Human Resource Career
    • Sales Marketing
    • Forex & Trading
    • Advertising & Marketing
    • Startup Guide
  • Technology
    • Guide to Technology
    • Cell Phones
    • Computer Software
    • IT Hardwares
    • Internet
    • Online Security
    • Cameras
    • Search Engine Optimization
    • Science & Technology
  • Women
    • Guide to Women
    • Relationship Advice
    • Marriage
    • Jewelry
    • Pregnancy
    • Fashion Style
    • Divorce Guide
    • Wedding Guide
    • Dating Guide
    • Natural Beauty
  • Health
    • Guide to Health
    • Guide to Medical
    • Plastic Surgery
    • Weight Loss
    • Sports
    • Body Wellness
    • Cancer Treatment
    • Common Illness
    • Health & Lifestyle
  • Education
    • Military Service
    • Politics and Policy
    • Arts & Humanities
    • Education and Teaching
    • Learn Languages
    • Colleges & Universities
  • Family
    • Quality Home Improvement
    • Hobbies and Interests
    • Family Guide to
    • Pet Guide
    • Loans Guide
    • Credit Cards
    • Gardening Guide
    • Home Security
    • Real Estate
    • Home Decor
    • Gift & Present
  • Travel
    • The Travel Guide
    • Adventure Travel
    • Cruise Ships
    • Beach Holiday
    • Travel Accommodation
    • Holiday Destinations
  • Cars
    • Information on Cars
    • Traffic Violations
    • Auto Insurance
    • Trailers
    • Sport Cars
    • The Bikes
  • Entertainment
    • Entertainment Guide
    • World Music
    • Photo & Video
    • Television & Games

Architects Of Control Program

    View: 
If Then Else is a decision making statement based on the given condition. It first checks the condition, if the condition is true then it executes the set of statements for the true, if the condition is false the it executes the set of statements for false. It is simplest form to interrupt the flow of program.



If condition Then

Statements

Else

Statement

Using the If?Then?Else statements require the use of comparison operators to build the needed condition statements. The comparison operators compare two or more values and decide if the values are equal to each other or if one is greater than the other; then the operators return a True or False answer.

Select Case Statements

Select Case statements allow you to check for multiple values at once.

Select [Case] test condition

Case expression list

Statements

[Case Else

Statements

End Select

Example

Select Case strMonth

Case "February"

IntDays = 28

Case "April", "June", "September", "November"

IntDays = 30

Case "January", "March", "May", "July", "August", "October", "December"

IntDays = 31

End Select

Loops

You might get some situation where you want to execute some set of statements several numbers of times. To do this we have several kinds of loops in VBA. Loops can be divided in two categories (1) Iteration loops like FOR loop (2) Logical loops like WHILE loop.

Iteration Loops

Iteration loops have a fixed starting and ending point. These loops are used to repeat the execution of set of statements specific number of times.

Dim I as integer

For I = 1 to 5

Msgbox ("Counting? & I)

Next I

Logical Loops

Logical loops have no predetermined number of iterations. Instead, they rely on a logical expression that tests for a particular condition and then repeat the loop until the condition is either met or cleared, depending upon the type of loop. Based on the result of the condition logical loops executes the code.

They can be simplified into two styles: those that test the condition before performing an action and those that test the condition after performing an action.

The Do While?Loop and Do Until?Loop both test the condition before performing the action within the loop. The difference between the two is that Do While loops perform the action when the condition is true and Do Until loops perform the action while the condition is false.

Dim intCounter as Integer

IntCounter = 1

Do While IntCounter <= 10

IntCounter = intCounter + 1

Loop

Dim IntCounter as Integer

IntCounter = 1

Do Until IntCounter = 11

IntCounter = intCounter + 1

Loop

The Do?Loop While and Do?Loop Until loops are similar to each other, just as they are similar to the Do While and Do Until loops mentioned earlier. Both check the conditional expression at the end of the loop, guaranteeing at least one pass through the loop.

GoTo Statement

The GoTo statement forces the procedure to change immediately to another section of the procedure unconditionally. The section of code that is to be branched to needs to be marked with either a line number or a line label, allowing the program to jump either forward or backward within the procedure. The best use GoTo statement is in error handling, you can direct the control of program to the error handler based on the error code generated while the execution of program.

The syntax for the GoTo statement is shown here:

GoTo line

Because GoTo statements can lead to unstructured code, using them is strongly discouraged. If used sparingly, they can be very useful.
More Articles from
Digital Video Camera Software
How To Know If Your Husband Is Cheating
How To Learn Type
How To Lock Files
How To Maintain Pc
How To Make 3d Models
How To Make A Client Server
How To Make A Form Html
How To Make A Video Tutorial
How To Make An Animation Movie
How To Make Dvd Menus
How To Make Dvd Slideshow
How To Make Home Video
How To Make Powerpoint Slides
How To Make Quick And Easy Money
How To Make Video Tutorials
How To Manage Projects
How To Manually Update Windows
How To Merge Pdf Documents
How To Microsoft Project
How To Monitor Computer
» More on
The Best Software Writing
  • Related Articles
  • Author
  • Most Popular
•Anger Out Of Control, by Johnjames
•Applications Of Control Systems, by Steve Hanson
•Architects Of Control Program, by Shailendra Singh
•Bachelor Of Science Program, by Kris Koonar
•Body Out Of Control, by Michael Russell
Shailendra Singh has sinced written about articles on various topics from Software, Search Engines and Software. Website DirectoryWe are the fastest growing human edited web directory in the world. Listing of new website in 48 hours on static html pages with static text links.We. Shailendra Singh's top article generates over 12100 views. Bookmark Shailendra Singh to your Favourites.
Business Properties For Lease
5.Has a story of making loans for the specified type of property under condition.6.Can suit both small and large commercial loans for remarkable purpose commercial properties
 
A Guide to Business | Guide to Technology | Guide to Women | Guide to Health | Family Guide to | Travel & Vacations | Information on Cars

EditorialToday Computer Software has 2 sub sections. Such as Software and All Microsoft Softwares. With over 20,000 authors and writers, we are a well known online resource and editorial services site in United Kingdom, Canada & America . Here, we cover all the major topics from self help guide to A Guide to Business, Guide to Finance, Ideas for Marketing, Legal Guide, Lettre De Motivation, Guide to Insurance, Guide to Health, Guide to Medical, Military Service, Guide to Women, Pet Guide, Politics and Policy , Guide to Technology, The Travel Guide, Information on Cars, Entertainment Guide, Family Guide to, Hobbies and Interests, Quality Home Improvement, Arts & Humanities and many more.
About Editorial Today | Contact Us | Terms of Use | Submit an Article | Our Authors