• Complain

Olga Maria Stefania Cucaro - Programming in Visual Basic (VB)

Here you can read online Olga Maria Stefania Cucaro - Programming in Visual Basic (VB) full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2021, publisher: ResearchFreelance, genre: Home and family. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Olga Maria Stefania Cucaro Programming in Visual Basic (VB)

Programming in Visual Basic (VB): summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Programming in Visual Basic (VB)" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Olga Maria Stefania Cucaro: author's other books


Who wrote Programming in Visual Basic (VB)? Find out the surname, the name of the author of the book and a list of all author's works by series.

Programming in Visual Basic (VB) — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Programming in Visual Basic (VB)" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Olga Maria Stefania Cucaro Programming in visual basic PROGRAMMING IN - photo 1
Olga Maria Stefania Cucaro
Programming in visual basic
PROGRAMMING IN VISUAL BASIC (VB) FROM THE ANALYSIS OF THE PROBLEM TO THE PROGRAM Of OLGA MARIA STEFANIA CUCARO Copyright 2021 by Olga MariaStefania Cucaro -All rights reserved. It is not permitted toreproduce, duplicate orsend any part of this document electronically or in print. Copyingofthis document is strictly prohibited. All the programs included inthis book are also copyrighted by the author / creator of thework. Dedicated to: Tomy mother who has always believed in me and to all the computerprofessors I have met in my life
Introduction
This work was born from thenecessity found by theauthor to solve various problems repeated over time, concerning thedata inserted in Excel sheets in the shortest possible time. Theauthor, being a programmer and expert in Pascal, Cobol andJavascript, searched for the most suitable solution and found it inthe Excel VBA and in the Visual Studio VB.

This document isintended to introduce users to programming in general and toprogramming in Visual Basic in particular. The VB is simple and canbe used on existing csv files or data entered directly into VisualStudio, quickly processing a large amount of data. For the momenttheonly tool we need is Visual Studio and the csv files. Of course, Ican't go into the intricacies of the databases that I willdefinitelyinclude in a future book. The book may not contain everything you should know aboutprogrammingin VB, but it does point the finger at the key points to createsomeprograms which are explained in detail in the various chapters. Thecontent is divided into two parts one which explains programming ingeneral and the second which explains programming in VB withconcreteexamples of programs.

To see the programs inserted in this document in Excel VBA, I referyou to my other eBook "PROGRAMMING IN VBA".

Summary
Introduction 1 Summary 2 PART I.: The basics of programming 4 Chapter 1: Understanding and solving problems 5 Understanding a problem and breaking it down into simple operations 5 Identify variables and constants 6 What does pseudo-code mean 6 Chapter 2: The logic of programming 7 The variables 7 The conditions 8 The cycles 9 Transform a sequence of operations into instructions 10 The flow chart 11 PART II: Programming in VB 15 Chapter 3: The VB 16 What is VB and how to use it 16 How to access VB 16 Chapter 4: Program in VB 21 The variables in VB 21 Chapter 5: Examples of programming in VB 23 The sum of two numbers 23 The sum of n numbers 26 The average of n numbers 29 Count values 34 Sum of the values in a given range 38 Sum of values that meet certain conditions 44 Chapter 6: Use of multiple sheets to solve complex work problems 51 COUNT CONTACTS 51 REMUNERATION CALCULATION 64 Chapter 7: How to use databases 87 Example of DIRECTORY with a table created in Access 87 Chapter 8: Using some APIs already present in Windows 112 Memory management 112 Chapter 9: Publish the application 117 Epilogue / Conclusion 124
PART I.: The basics of programming
Chapter 1: Understanding and solving problems
Understanding a problem and breaking it down into simple operations
The first step beforeprogramming is to understandthe problem to be solved with the program we are going tocreate. Just like in math, it is bestto think carefullybefore starting to solve the problem. For example, let's assume wework in a Call Center and have all the probable customers to becontacted periodically in an Excel sheet and all the customerscontacted in the single days of the twelve months of the year inanother sheet and we know that the customer must be contactedmaximum3 times a month, this is a problem that we can solve with the VB.Inparticular, to solve the problem we have to look for the names ofthefirst sheet in the second sheet and count how many times it isrepeated for each month, DATA that we will insert in the firstsheet.Subsequently we will carry out a check and if the value for eachmonth is greater than 3 we could decide to color the number in redtohighlight the problem. Another example could be tocalculate the hoursworked by each employee and the relative remuneration, obviouslyhaving in one sheet the name of the employee and the hourlyremuneration and in another sheet the hours worked in each singledayof the month. In this case we will search for the name entered inthefirst sheet in the second sheet and we will add the hours worked byeach individual employee and multiply them by the hourlywages.

We will solve these problems atthe end of thisbook after having better understood the basics of programming andVB,but the logic of the solution must be clear before tackling theprogramming step. Let's start with the simplestexample that is thesum of three numbers. What do we do automatically to addthreenumbers?

  1. we read the three numbers
  2. Let's add the three numbers
  3. We write the result
Assumingto name the three numbers with A, B and C we will proceed asfollows:
  1. Reset the Sum
  2. Read A
  3. Read B
  4. Read C
  5. Sum = A + B + C
  6. Write Sum
Wehave simply divided the process into simple and sequentialoperations.
Identify variables and constants
In the previous example we canidentify fourvariables, three of input (input) and one of output (output). Inparticular A, B and C are the input variables, while Sum is theoutput variable. If we used an intermediate variable we would callita working variable.

The difference between variables and constantsisessential, a constant says the word itself and already set at thebeginning of the program and does not change during processing, itremains constant. Variables are divided intointegers, reals andbooleans. Integer variables contain integers, real variablescontainreal numbers and Boolean variables contain two states (true orfalse) Why did I write contain?Precisely because thevariable is like a container and contains what weindicate. In all programming languagesthe first stepis the definition of the variables which makes the computer able torecognize them. In our simple little program,the sum of threenumbers A, B, C and Sum are numeric variables that can be integersatthe programmer's choice.

What does pseudo-code mean
Thepseudo-code allows programming in a general language which is thendeclined in the individual languages by the programmer.
What does pseudo-code mean
Thepseudo-code allows programming in a general language which is thendeclined in the individual languages by the programmer.

We cansimply say that a pseudo-language is a generic programming thatbecomes specific with the choice and use of the single language. Ifaprogrammer is a beginner, it is better to start by writing apseudo-code first and then transform this pseudo-code into theactualprogram in the chosen language.

Chapter 2: The logic of programming
The variables
Variables are of fundamentalimportance forprogramming. After having identified them, they must be defined atthe beginning of the program as we will see in the flow charts thatwe will use in the following chapters. Variables contain data andhave a unique name. The assignment, on the other hand, consists ingiving a certain value to the variable.
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Programming in Visual Basic (VB)»

Look at similar books to Programming in Visual Basic (VB). We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Programming in Visual Basic (VB)»

Discussion, reviews of the book Programming in Visual Basic (VB) and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.