Visual Basic is a rapid application development tool that uses an interactive development environment. It allows users to create graphical user interfaces visually by dragging and dropping objects instead of writing code. Visual Basic uses an event-driven programming model, where code executes in response to user and system events. It supports object-oriented programming concepts like classes and modules. Variables can be declared with different data types and arrays can be fixed-size or dynamic.
This document introduces C programming and provides an overview of programming languages. It discusses that programming languages can be categorized into machine language, assembly language, and high-level languages. C programming is then introduced, including that it was developed in 1970, standardized in 1989, and used to develop UNIX. The basic structure of a C program is outlined including the documentation, link, definition, main, and subprogram sections.
This document provides an introduction to programming using Visual Basic 6.0. It discusses why VB is a good choice for beginners, describes the basic VB integrated development environment interface and components like forms, objects, and properties. It then walks through a "Hello World" example program to demonstrate creating a form with labels, buttons, and event procedures. The document provides details on formatting text, adding images and colors, and using message boxes before concluding with a suggestion for a pizza ordering program project.
C# is a component-oriented programming language that builds on the .NET framework. It has a familiar C-like syntax that is easy for developers familiar with C, C++, Java, and Visual Basic to adopt. C# is fully object-oriented and optimized for building .NET applications. Everything in C# belongs to a class, with basic data types including integers, floats, booleans, characters, and strings. C# supports common programming constructs like variables, conditional statements, loops, methods, and classes. C# can be easily combined with ASP.NET for building web applications in a powerful, fast, and high-level way.
Threads And Synchronization in C#
Concept about Threads And Synchronization in C#
it will help you about this concept
feel free
Download free programming applications on
http://www.androidapplications.xyz
Abstract data types (ADTs) define a data type in terms of its possible values and operations, independent of implementation details. An ADT consists of a logical form defining the data items and operations, and a physical form comprising the data structures and algorithms that implement it. Simple data types like integers and characters are ADTs with basic storage structures like memory locations and operations implemented by hardware/software. More complex ADTs require user-defined data structures to organize data in memory or files along with subroutines implementing each operation.
This document provides an introduction and overview of the C# programming language. It discusses prerequisites, learning objectives, and the agenda. It covers Hello World examples, design goals of C#, types including value types and reference types, program structure, statements, operators, and using Visual Studio and the .NET framework. Key topics are the unified type system in C#, value types vs reference types, boxing and unboxing, predefined types like integers and strings, and object being the root type.
This document provides an overview of the history and development of the Visual Basic programming language. It discusses how Visual Basic originated from the BASIC language in the 1960s and was later adapted for microcomputers by Bill Gates and Paul Allen in the 1970s. Every version of Basic since has been based on their early work. Visual Basic was then introduced by Microsoft in 1991 and continued to be updated with new features and capabilities in subsequent versions like Visual Basic 3.0, 4.0, 5.0 and 6.0. The document also defines some key Visual Basic concepts and terms.
The document discusses constructors and destructors in VB.NET. It explains that a constructor is called whenever a new object is created and is used to initialize the object. It has the name "New" and no return type. A destructor, called Finalize in VB.NET, is automatically called when an object is destroyed to perform cleanup tasks like closing files. Examples are provided to demonstrate default and parameterized constructors, as well as destructors.
This document discusses graphical user interface (GUI) components in Java and layout managers. It provides descriptions of common GUI components like JLabel, JTextField, JButton, JCheckBox, and JComboBox. It then explains several layout managers - BorderLayout, CardLayout, FlowLayout, GridLayout, GridBagLayout, GroupLayout, and SpringLayout - and provides their class declarations.
Java is a programming language and platform that allows developers to write programs once and run them anywhere. The document discusses Java's history, features, and provides examples of Java code. It defines Java as a simple, secure, platform-independent language and describes how to write a basic "Hello World" Java program. It also explains how to set the path variable so Java tools like javac and java can be run from any directory.
The document discusses menu bars and menus in Java. It explains that a menu bar displays a list of top-level menu choices, with each choice associated with a drop-down menu. This is implemented using the MenuBar, Menu, and MenuItem classes. Menus can contain other menus and menu items. The document provides examples of how to construct menus and menu items, add them to the menu bar, and handle events when items are selected. It includes a full program example that creates a menu bar with file and edit menus for performing operations like cut, copy, paste, and for toggling debug and test modes.
The document discusses several rich controls in ASP.NET including the AdRotator, File Upload, Multiview, Calendar, and Wizard controls. It provides descriptions of each control and examples of how to use their key properties. Some key advantages of rich controls mentioned are that they are flexible, reduce code needs, and improve performance by combining standard controls into a single control.
This document provides an introduction and overview of C# programming and SQL. It discusses key aspects of C#, its uses in Windows, web, and web service applications. It also covers SQL fundamentals like retrieving, inserting, updating, and deleting records. The document includes examples of SQL statements like INSERT, UPDATE, DELETE, and SELECT and highlights best practices like enclosing string values in single quotes and ending statements with semicolons.
The document provides an overview of a two-day training course on C# scripting for an iX HMI solution. Day 1 covers basic C# concepts like variables, data types, flow control, methods, exceptions, arrays, and debugging. Day 2 focuses on scripting specifically for the iX platform, including accessing tags, screens, services, and more. Specific topics covered include script modules, events, file access, timers, serial ports, and referencing external assemblies.
The document discusses VBA procedures and data types. It defines sub procedures and functions, explaining that functions can return values while subs do not. Examples are provided of how to write subs and functions. The document also discusses public and private procedures, and different variable data types in VBA like Byte, Boolean, Integer, Long, Currency, Single, Double, Date, String, Object, and Variant. It provides the valid value ranges for each data type. The next class will cover all the data types with examples.
The document outlines the topics covered in an introductory Visual Basic for Applications (VBA) course for Microsoft Access. The 3-hour sessions cover event-driven programming in Access, VBA language constructs and programming techniques, and working programmatically with data. Key concepts discussed include using the VBA editor, differentiating between functions and sub procedures, variable scope, and built-in VBA functions. Interactive exercises are provided to help learn organizing code and using functions.
Visual Basic is an event-driven programming language developed by Microsoft. It was introduced in 1991 and helped popularize graphical user interface (GUI) programming. Some key points:
- The original BASIC language was developed in the 1960s and was simpler than other languages at the time like FORTRAN.
- Bill Gates and Paul Allen wrote the first BASIC for microcomputers in the 1970s, which became the foundation for later versions like GW-BASIC and QBASIC.
- Visual Basic 6.0 introduced improvements like a faster compiler and support for database integration and internet capabilities.
- It uses an integrated development environment (IDE) and is based on creating and linking together objects to build Windows applications and
Notes how to work with variables, constants and do calculations
1. The document discusses different ways of storing and working with data in a Visual C++ application, including variables, constants, arrays, and structures.
2. It explains the differences between local and global scope for variables and constants, and shows examples of declaring identifiers in each scope.
3. The document also demonstrates how to convert between data types like string and double when retrieving user input and performing calculations.
This presentation covers the syllabus of Himachal Pradesh University for the subject of ASP.NET Technologies. This is part -2 of a syllabus. This is particularly for BCA students.
This document discusses algorithms, flowcharts, pseudocode, and data types in programming. It defines an algorithm as a step-by-step procedure to solve problems. Pseudocode uses natural language to describe an algorithm, while a flowchart provides a graphical representation. The document also discusses using flowcharts and pseudocode in the planning process, and defines common data types like integer, string, boolean and their uses in programming.
A flow chart is a graphical representation of a process using different symbols to represent each step linked by arrows. An algorithm is a step-by-step method to solve a problem or make decisions. The main differences between an algorithm and flowchart are that an algorithm is a set of rules to solve a problem while a flowchart is a diagram that visually represents an algorithm. C programming variables must be declared with a data type and can be initialized with a starting value. Variables can be declared locally inside functions or globally outside any functions.
Visual Basic 6 allows developers to design graphical user interfaces and connect to databases. It uses an event-driven programming model where code executes in response to user and system events like button clicks. The document discusses connecting a VB application to a Microsoft Access database using ActiveX Data Objects (ADO). Developers add an ADO Data Control to the form, specify the database file path in its connection string, and select the table as the record source. Common ADO commands allow navigating and updating the recordset. Visual Basic provides a visual interface for building Windows applications and integrating with databases through controls like ADO.
Visual Basic 6 allows developers to design graphical user interfaces and connect to databases. It uses an event-driven programming model where code executes in response to user and system events like button clicks. The document discusses connecting a VB application to a Microsoft Access database using ActiveX Data Objects (ADO). Developers add an ADO Data Control to the form, specify the database file path in its connection string, and select the table as the record source. Common ADO commands allow navigating and updating the recordset. Visual Basic provides a visual interface for building Windows applications and integrating with databases through ADO.
The document discusses elements of the .NET framework including CLR, class libraries, data and XML support, web services, web forms, and windows forms. It also covers assembly manifests, how .NET applications are compiled and executed, the base class library, value types vs reference types, and garbage collection. Key points include that the CLR allows managed code to run in a common language runtime, class libraries provide reusable functionality, and the assembly manifest contains metadata about an assembly.
This document provides an introduction to visual basic programming, covering topics such as variables, data types, operators, flow control, procedures, arrays, strings, and exception handling. It discusses the visual studio integrated development environment and its key components. It defines variables and data types, and covers implicit and explicit type conversions. Control flow structures like conditional statements, selection statements, and iteration statements are explained. Procedures such as subroutines and functions are defined. Finally, it provides examples of arrays and strings.
The document provides information about preparing for a technical interview, including:
- Check the company profile, areas of interest, and domain to understand what may be asked.
- Be prepared to discuss your fundamental computer engineering knowledge as well as one or two subjects you are interested in and knowledgeable about.
- Also prepare to discuss your past project work and the latest technologies.
- Key topics that may be covered include C, C++, data structures, algorithms, databases, operating systems, networks, and various programming languages.
- Understanding pointers, memory allocation functions, structures, unions, classes, inheritance and polymorphism in C/C++ is also important for technical interviews.
This chapter discusses creating Windows applications in C# using Visual Studio, including differentiating between Windows and console applications, using forms and controls like buttons and labels, and handling events. It provides an overview of graphical user interfaces and windows applications, and demonstrates how to create a simple Windows application with forms and controls through code examples. The document also covers best practices for application design and the use of Visual Studio for developing Windows applications.
Visual Basic is a tool for developing Windows GUI applications. It is event-driven, meaning code only runs in response to events like button clicks. Developers draw the user interface, assign control properties, and attach code to events. The interface has modes for design, running, and debugging applications. Key windows include the form, toolbox, properties, and code editor. Variables follow naming conventions and have different scopes depending on where they are declared.
This document provides an introduction to Java programming concepts including:
- Java is both a programming language and platform that is simple, architecture neutral, object-oriented, and portable.
- Java source code is written in .java files and compiled into .class files by javac before being executed by the Java Virtual Machine (JVM).
- The JVM allows Java programs to run on any platform without recompilation, providing platform independence.
- Key Java concepts covered include objects, classes, methods, variables, data types, operators, control flow, and arrays.
- Examples demonstrate how to write, compile, and run simple Java programs to illustrate these core programming concepts.
This document introduces C programming and provides an overview of programming languages. It discusses that programming languages can be categorized into machine language, assembly language, and high-level languages. C programming is then introduced, including that it was developed in 1970, standardized in 1989, and used to develop UNIX. The basic structure of a C program is outlined including the documentation, link, definition, main, and subprogram sections.
Introduction to programming using Visual Basic 6Jeanie Arnoco
This document provides an introduction to programming using Visual Basic 6.0. It discusses why VB is a good choice for beginners, describes the basic VB integrated development environment interface and components like forms, objects, and properties. It then walks through a "Hello World" example program to demonstrate creating a form with labels, buttons, and event procedures. The document provides details on formatting text, adding images and colors, and using message boxes before concluding with a suggestion for a pizza ordering program project.
C# is a component-oriented programming language that builds on the .NET framework. It has a familiar C-like syntax that is easy for developers familiar with C, C++, Java, and Visual Basic to adopt. C# is fully object-oriented and optimized for building .NET applications. Everything in C# belongs to a class, with basic data types including integers, floats, booleans, characters, and strings. C# supports common programming constructs like variables, conditional statements, loops, methods, and classes. C# can be easily combined with ASP.NET for building web applications in a powerful, fast, and high-level way.
Threads And Synchronization in C#
Concept about Threads And Synchronization in C#
it will help you about this concept
feel free
Download free programming applications on
http://www.androidapplications.xyz
Abstract data types (ADTs) define a data type in terms of its possible values and operations, independent of implementation details. An ADT consists of a logical form defining the data items and operations, and a physical form comprising the data structures and algorithms that implement it. Simple data types like integers and characters are ADTs with basic storage structures like memory locations and operations implemented by hardware/software. More complex ADTs require user-defined data structures to organize data in memory or files along with subroutines implementing each operation.
This document provides an introduction and overview of the C# programming language. It discusses prerequisites, learning objectives, and the agenda. It covers Hello World examples, design goals of C#, types including value types and reference types, program structure, statements, operators, and using Visual Studio and the .NET framework. Key topics are the unified type system in C#, value types vs reference types, boxing and unboxing, predefined types like integers and strings, and object being the root type.
This document provides an overview of the history and development of the Visual Basic programming language. It discusses how Visual Basic originated from the BASIC language in the 1960s and was later adapted for microcomputers by Bill Gates and Paul Allen in the 1970s. Every version of Basic since has been based on their early work. Visual Basic was then introduced by Microsoft in 1991 and continued to be updated with new features and capabilities in subsequent versions like Visual Basic 3.0, 4.0, 5.0 and 6.0. The document also defines some key Visual Basic concepts and terms.
The document discusses constructors and destructors in VB.NET. It explains that a constructor is called whenever a new object is created and is used to initialize the object. It has the name "New" and no return type. A destructor, called Finalize in VB.NET, is automatically called when an object is destroyed to perform cleanup tasks like closing files. Examples are provided to demonstrate default and parameterized constructors, as well as destructors.
This document discusses graphical user interface (GUI) components in Java and layout managers. It provides descriptions of common GUI components like JLabel, JTextField, JButton, JCheckBox, and JComboBox. It then explains several layout managers - BorderLayout, CardLayout, FlowLayout, GridLayout, GridBagLayout, GroupLayout, and SpringLayout - and provides their class declarations.
Java is a programming language and platform that allows developers to write programs once and run them anywhere. The document discusses Java's history, features, and provides examples of Java code. It defines Java as a simple, secure, platform-independent language and describes how to write a basic "Hello World" Java program. It also explains how to set the path variable so Java tools like javac and java can be run from any directory.
The document discusses menu bars and menus in Java. It explains that a menu bar displays a list of top-level menu choices, with each choice associated with a drop-down menu. This is implemented using the MenuBar, Menu, and MenuItem classes. Menus can contain other menus and menu items. The document provides examples of how to construct menus and menu items, add them to the menu bar, and handle events when items are selected. It includes a full program example that creates a menu bar with file and edit menus for performing operations like cut, copy, paste, and for toggling debug and test modes.
The document discusses several rich controls in ASP.NET including the AdRotator, File Upload, Multiview, Calendar, and Wizard controls. It provides descriptions of each control and examples of how to use their key properties. Some key advantages of rich controls mentioned are that they are flexible, reduce code needs, and improve performance by combining standard controls into a single control.
This document provides an introduction and overview of C# programming and SQL. It discusses key aspects of C#, its uses in Windows, web, and web service applications. It also covers SQL fundamentals like retrieving, inserting, updating, and deleting records. The document includes examples of SQL statements like INSERT, UPDATE, DELETE, and SELECT and highlights best practices like enclosing string values in single quotes and ending statements with semicolons.
The document provides an overview of a two-day training course on C# scripting for an iX HMI solution. Day 1 covers basic C# concepts like variables, data types, flow control, methods, exceptions, arrays, and debugging. Day 2 focuses on scripting specifically for the iX platform, including accessing tags, screens, services, and more. Specific topics covered include script modules, events, file access, timers, serial ports, and referencing external assemblies.
E learning excel vba programming lesson 3Vijay Perepa
The document discusses VBA procedures and data types. It defines sub procedures and functions, explaining that functions can return values while subs do not. Examples are provided of how to write subs and functions. The document also discusses public and private procedures, and different variable data types in VBA like Byte, Boolean, Integer, Long, Currency, Single, Double, Date, String, Object, and Variant. It provides the valid value ranges for each data type. The next class will cover all the data types with examples.
The document outlines the topics covered in an introductory Visual Basic for Applications (VBA) course for Microsoft Access. The 3-hour sessions cover event-driven programming in Access, VBA language constructs and programming techniques, and working programmatically with data. Key concepts discussed include using the VBA editor, differentiating between functions and sub procedures, variable scope, and built-in VBA functions. Interactive exercises are provided to help learn organizing code and using functions.
Visual Basic is an event-driven programming language developed by Microsoft. It was introduced in 1991 and helped popularize graphical user interface (GUI) programming. Some key points:
- The original BASIC language was developed in the 1960s and was simpler than other languages at the time like FORTRAN.
- Bill Gates and Paul Allen wrote the first BASIC for microcomputers in the 1970s, which became the foundation for later versions like GW-BASIC and QBASIC.
- Visual Basic 6.0 introduced improvements like a faster compiler and support for database integration and internet capabilities.
- It uses an integrated development environment (IDE) and is based on creating and linking together objects to build Windows applications and
Notes how to work with variables, constants and do calculationsWilliam Olivier
1. The document discusses different ways of storing and working with data in a Visual C++ application, including variables, constants, arrays, and structures.
2. It explains the differences between local and global scope for variables and constants, and shows examples of declaring identifiers in each scope.
3. The document also demonstrates how to convert between data types like string and double when retrieving user input and performing calculations.
This presentation covers the syllabus of Himachal Pradesh University for the subject of ASP.NET Technologies. This is part -2 of a syllabus. This is particularly for BCA students.
This document discusses algorithms, flowcharts, pseudocode, and data types in programming. It defines an algorithm as a step-by-step procedure to solve problems. Pseudocode uses natural language to describe an algorithm, while a flowchart provides a graphical representation. The document also discusses using flowcharts and pseudocode in the planning process, and defines common data types like integer, string, boolean and their uses in programming.
A flow chart is a graphical representation of a process using different symbols to represent each step linked by arrows. An algorithm is a step-by-step method to solve a problem or make decisions. The main differences between an algorithm and flowchart are that an algorithm is a set of rules to solve a problem while a flowchart is a diagram that visually represents an algorithm. C programming variables must be declared with a data type and can be initialized with a starting value. Variables can be declared locally inside functions or globally outside any functions.
Visual Basic 6 allows developers to design graphical user interfaces and connect to databases. It uses an event-driven programming model where code executes in response to user and system events like button clicks. The document discusses connecting a VB application to a Microsoft Access database using ActiveX Data Objects (ADO). Developers add an ADO Data Control to the form, specify the database file path in its connection string, and select the table as the record source. Common ADO commands allow navigating and updating the recordset. Visual Basic provides a visual interface for building Windows applications and integrating with databases through controls like ADO.
Visual Basic 6 allows developers to design graphical user interfaces and connect to databases. It uses an event-driven programming model where code executes in response to user and system events like button clicks. The document discusses connecting a VB application to a Microsoft Access database using ActiveX Data Objects (ADO). Developers add an ADO Data Control to the form, specify the database file path in its connection string, and select the table as the record source. Common ADO commands allow navigating and updating the recordset. Visual Basic provides a visual interface for building Windows applications and integrating with databases through ADO.
The document discusses elements of the .NET framework including CLR, class libraries, data and XML support, web services, web forms, and windows forms. It also covers assembly manifests, how .NET applications are compiled and executed, the base class library, value types vs reference types, and garbage collection. Key points include that the CLR allows managed code to run in a common language runtime, class libraries provide reusable functionality, and the assembly manifest contains metadata about an assembly.
Unit 1 introduction to visual basic programmingAbha Damani
This document provides an introduction to visual basic programming, covering topics such as variables, data types, operators, flow control, procedures, arrays, strings, and exception handling. It discusses the visual studio integrated development environment and its key components. It defines variables and data types, and covers implicit and explicit type conversions. Control flow structures like conditional statements, selection statements, and iteration statements are explained. Procedures such as subroutines and functions are defined. Finally, it provides examples of arrays and strings.
The document provides information about preparing for a technical interview, including:
- Check the company profile, areas of interest, and domain to understand what may be asked.
- Be prepared to discuss your fundamental computer engineering knowledge as well as one or two subjects you are interested in and knowledgeable about.
- Also prepare to discuss your past project work and the latest technologies.
- Key topics that may be covered include C, C++, data structures, algorithms, databases, operating systems, networks, and various programming languages.
- Understanding pointers, memory allocation functions, structures, unions, classes, inheritance and polymorphism in C/C++ is also important for technical interviews.
The document discusses generics in .NET. It defines what generics are, provides examples of generic classes and methods, and explains the benefits of using generics such as type safety, performance, and code reuse. It also covers generic type parameters, constraints, and constructed generic types.
This document discusses programming concepts such as variables, constants, data types, and program structure. It defines key terms like:
- Variables which store changing data in memory and are assigned a data type. Constants store fixed values.
- Data types include integers, reals, Booleans, strings, characters which determine how data is stored and processed.
- Programs use statements, selection (if/else), and repetition (loops). Procedures and functions are subroutines that can optionally return values.
- Parameters pass values to subroutines to influence their behavior. Variables can be global or local in scope, influencing where they are accessible.
This document provides an introduction to fundamentals of programming with C#, including definitions of key concepts like algorithms, variables, data types, operators, and conditional statements. It explains that programming involves describing what you want the computer to do as a sequence of steps or algorithms. The stages of software development are outlined as gathering requirements, planning/design, implementation, testing, deployment, support, and documentation. An overview of C# programming language fundamentals is also provided, such as basic syntax structure, defining classes and methods, and using the console for input/output.
This document discusses data types, variables, and variable scope in Microsoft Visual Basic 2005. It describes declaring variables using the Dim statement and assigning values to variables. Variables can be local, form-level, or global in scope. The AutoSize property adjusts a control's size to fit its contents. The Object data type is flexible but less efficient than specific data types. Rules for naming variables include starting with a letter and avoiding spaces.
This document discusses data types, variables, and variable scope in Microsoft Visual Basic 2005. It describes declaring variables using the Dim statement and assigning values to variables. Variables can be local, form-level, or global in scope. The AutoSize property adjusts a control's size to fit its contents. The Object data type is flexible but less efficient than specific data types. Rules for naming variables include starting with a letter and avoiding spaces.
The document outlines the steps involved in program design and problem solving techniques, including defining the problem, outlining the solution, developing an algorithm using pseudocode, testing the algorithm, coding the algorithm, running and documenting the program. It also discusses algorithmic problem solving, the structure theorem, meaningful naming conventions, communication between modules through variables and parameters, module cohesion and coupling, and sequential file updates.
1. What are the differences between a DBMS and RDBMS?
2. Explain the terms database and DBMS. Also, mention the different types of DBMS.
3. What are the advantages of DBMS?
4. Mention the different languages present in DBMS
5. What do you understand by query optimization?
6. Do we consider NULL values the same as that of blank space or zero?
7. What do you understand by aggregation and atomicity?
8. What are the different levels of abstraction in the DBMS?
9. What is an entity-relationship model?
10. What do you understand by the terms Entity, Entity Type, and Entity Set in DBMS?
11. What are relationships and mention different types of relationships in the DBMS
12. What is concurrency control?
13. What are the ACID properties in DBMS?
14. What is normalization and what are the different types of normalization?
15. What are the different types of keys in the database?
16. What do you understand by correlated subqueries in DBMS?
17. Explain Database partitioning and its importance.
18. What do you understand by functional dependency and transitive dependency in DBMS?
19. What is the difference between two and three-tier architectures?
20. Mention the differences between Unique Key and Primary Key
21. What is a checkpoint in DBMS and when does it occur?
22. Mention the differences between Trigger and Stored Procedures
23. What are the differences between Hash join, Merge join and Nested loops?
24. What do you understand by Proactive, Retroactive and Simultaneous Update?
25. What are indexes? Mention the differences between the clustered and non-clustered index
26. What do you understand by intension and extension?
27. What do you understand by cursor? Mention the different types of cursor A cursor is a database object which helps in manipulating data, row by row and represents a result set.
28. Explain the terms specialization and generalization
29. What do you understand by Data Independence?
30. What are the different integrity rules present in the DBMS?
31. What does Fill Factor concept mean with respect to indexes?
32. What is Index hunting and how does it help in improving query performance?
33. What are the differences between network and hierarchical database model?
34. Explain what is a deadlock and mention how it can be resolved?
35. What are the differences between an exclusive lock and a shared lock?
=>Concept of Governance
=>Risk and Control (GRC) as applicable to IT operational risk
=>Importance of documentation
=>DATA FLOW DIAGRAM for every application
=>Review of changes in the Data flow, reporting, etc.
=>Parameters for review
=>Importance of review on SLA compliance
=>Reporting to IT Strategy committee, Board etc.
Importance of Data - Where to find it, how to store, manipulate, and characterize it
Artificial Intelligence (AI)- Introduction to AI & ML Technologies/ Applications
Machine Learning (ML), Basic Machine Learning algorithms.
Applications of AI & ML in Marketing, Sales, Finance, Operations, Supply Chain
& Human Resources Data Governance
Legal and Ethical Issues
Robotic Process Automation (RPA)
Internet of Things (IoT)
Cloud Computing
This document provides an introduction to database management systems (DBMS). It defines key terms like database, DBMS, and database system. It describes the common components of a database including database administrators, designers, and end users. It outlines advantages of DBMS over file processing systems and discusses data models, database schemas and instances, DBMS architecture including internal, conceptual and external schemas, and data independence.
What is Data ?
What is Information?
Data Models, Schema and Instances
Components of Database System
What is DBMS ?
Database Languages
Applications of DBMS
Introduction to Databases
Fundamentals of Data Modeling and Database Design
Database Normalization
Types of keys in database management system
Distributed Database
CASE (COMPUTER AIDED SOFTWARE ENGINEERING)
CASE and its Scope
CASE support in software life cycle documentation
project management
Internal Interface
Reverse Software Engineering
Architecture of CASE environment.
SOFTWARE RELIABILITY AND QUALITY ASSURANCE
Reliability issues
Reliability metrics
Reliability growth modeling
Software quality
ISO 9000 certification for software industry
SEI capability maturity model
comparison between ISO and SEI CMM
Software Testing
Different Types of Software Testing
Verification
Validation
Unit Testing
Beta Testing
Alpha Testing
Black Box Testing
White Box testing
Error
Bug
Software Design
Design principles
Problem partitioning
Abstraction
Top down and bottom up-design
Structured approach
Functional versus object oriented approach
Design specifications and verification
Monitoring and control
Cohesiveness
Coupling
Fourth generation techniques
Functional independence
Software Architecture
Transaction and Transform Mapping
This document discusses different software development life cycle (SDLC) models including iterative and spiral models. The iterative model involves building a product incrementally in iterations, with requirements evolving in each iteration based on user feedback. The spiral model similarly progresses in iterations but places more emphasis on risk analysis. Each spiral involves planning, risk analysis, engineering, and evaluation phases. The document also covers advantages and disadvantages of each model, as well as the role of management in software projects, including planning, monitoring and control, and termination analysis.
Software Lifecycle Models / Software Development Models
Types of Software development models
Waterfall Model
Features of Waterfall Model
Phase of Waterfall Model
Prototype Model
Advantages of Prototype Model
Disadvantages of Prototype model
V Model
Advantages of V-model
Disadvantages of V-model
When to use the V-model
Incremental Model
ITERATIVE AND INCREMENTAL DEVELOPMENT
INCREMENTAL MODEL LIFE CYCLE
When to use the Incremental model
Rapid Application Development RAD Model
phases in the rapid application development (RAD) model
Advantages of the RAD model
Disadvantages of RAD model
When to use RAD model
Agile Model
Advantages of Agile model
Disadvantages of Agile model
When to use Agile model
Introduction to software engineering
Software products
Why Software is Important?
Software costs
Features of Software?
Software Applications
Software—New Categories
Software Engineering
Importance of Software Engineering
Essential attributes / Characteristics of good software
Software Components
Software Process
Five Activities of a Generic Process framework
Relative Costs of Fixing Software Faults
Software Qualities
Software crisis
Software Development Stages/SDLC
What is Software Verification
Advantages of Software Verification
Advantages of Validation
Cloud Computing
Categories of Cloud Computing
SaaS
PaaS
IaaS
Threads of Cloud Computing
Insurance Challenges
Cloud Solutions
Security of the Insurance Industry
Cloud Solutions
Insurance Security in the Insurance Industry with respect to Indian market
Application Software
Applications Software
Software Types
Task-Oriented Productivity Software
Business Software
Application Software and Ethics
Computers and People
Software:
Systems and Application Software
Identify and briefly describe the functions of the two basic kinds of software
Outline the role of the operating system and identify the features of several popular operating systems
Discuss how application software can support personal, workgroup, and enterprise business objectives
Identify three basic approaches to developing application software and discuss the pros and cons of each
Outline the overall evolution and importance of programming languages and clearly differentiate among the generations of programming languages
Identify several key software issues and trends that have an impact on organizations and individuals
Programming Languages
A formal language for describing computation?
A “user interface” to a computer?
Syntax + semantics?
Compiler, or interpreter, or translator?
A tool to support a programming paradigm?
This document discusses various number coding systems and data storage methods used in computing. It covers 2's complement for binary numbers, binary coded decimal, Gray codes, and ASCII character encoding. Data is stored in binary registers and can be transferred between registers using digital logic circuits. Building the processing, storage, and communication components of a computer allows information to be input, stored, and transferred.
More from Amity University | FMS - DU | IMT | Stratford University | KKMI International Institute | AIMA | DTU (20)
(T.L.E.) Agriculture: Essentials of GardeningMJDuyan
(𝐓𝐋𝐄 𝟏𝟎𝟎) (𝐋𝐞𝐬𝐬𝐨𝐧 𝟏.𝟎)-𝐅𝐢𝐧𝐚𝐥𝐬
Lesson Outcome:
-Students will understand the basics of gardening, including the importance of soil, water, and sunlight for plant growth. They will learn to identify and use essential gardening tools, plant seeds, and seedlings properly, and manage common garden pests using eco-friendly methods.
Is Email Marketing Really Effective In 2024?Rakesh Jalan
Slide 1
Is Email Marketing Really Effective in 2024?
Yes, Email Marketing is still a great method for direct marketing.
Slide 2
In this article we will cover:
- What is Email Marketing?
- Pros and cons of Email Marketing.
- Tools available for Email Marketing.
- Ways to make Email Marketing effective.
Slide 3
What Is Email Marketing?
Using email to contact customers is called Email Marketing. It's a quiet and effective communication method. Mastering it can significantly boost business. In digital marketing, two long-term assets are your website and your email list. Social media apps may change, but your website and email list remain constant.
Slide 4
Types of Email Marketing:
1. Welcome Emails
2. Information Emails
3. Transactional Emails
4. Newsletter Emails
5. Lead Nurturing Emails
6. Sponsorship Emails
7. Sales Letter Emails
8. Re-Engagement Emails
9. Brand Story Emails
10. Review Request Emails
Slide 5
Advantages Of Email Marketing
1. Cost-Effective: Cheaper than other methods.
2. Easy: Simple to learn and use.
3. Targeted Audience: Reach your exact audience.
4. Detailed Messages: Convey clear, detailed messages.
5. Non-Disturbing: Less intrusive than social media.
6. Non-Irritating: Customers are less likely to get annoyed.
7. Long Format: Use detailed text, photos, and videos.
8. Easy to Unsubscribe: Customers can easily opt out.
9. Easy Tracking: Track delivery, open rates, and clicks.
10. Professional: Seen as more professional; customers read carefully.
Slide 6
Disadvantages Of Email Marketing:
1. Irrelevant Emails: Costs can rise with irrelevant emails.
2. Poor Content: Boring emails can lead to disengagement.
3. Easy Unsubscribe: Customers can easily leave your list.
Slide 7
Email Marketing Tools
Choosing a good tool involves considering:
1. Deliverability: Email delivery rate.
2. Inbox Placement: Reaching inbox, not spam or promotions.
3. Ease of Use: Simplicity of use.
4. Cost: Affordability.
5. List Maintenance: Keeping the list clean.
6. Features: Regular features like Broadcast and Sequence.
7. Automation: Better with automation.
Slide 8
Top 5 Email Marketing Tools:
1. ConvertKit
2. Get Response
3. Mailchimp
4. Active Campaign
5. Aweber
Slide 9
Email Marketing Strategy
To get good results, consider:
1. Build your own list.
2. Never buy leads.
3. Respect your customers.
4. Always provide value.
5. Don’t email just to sell.
6. Write heartfelt emails.
7. Stick to a schedule.
8. Use photos and videos.
9. Segment your list.
10. Personalize emails.
11. Ensure mobile-friendliness.
12. Optimize timing.
13. Keep designs clean.
14. Remove cold leads.
Slide 10
Uses of Email Marketing:
1. Affiliate Marketing
2. Blogging
3. Customer Relationship Management (CRM)
4. Newsletter Circulation
5. Transaction Notifications
6. Information Dissemination
7. Gathering Feedback
8. Selling Courses
9. Selling Products/Services
Read Full Article:
https://digitalsamaaj.com/is-email-marketing-effective-in-2024/
Join educators from the US and worldwide at this year’s conference, themed “Strategies for Proficiency & Acquisition,” to learn from top experts in world language teaching.
Integrated Marketing Communications (IMC)- Concept, Features, Elements, Role of advertising in IMC
Advertising: Concept, Features, Evolution of Advertising, Active Participants, Benefits of advertising to Business firms and consumers.
Classification of advertising: Geographic, Media, Target audience and Functions.
Lecture_Notes_Unit4_Chapter_8_9_10_RDBMS for the students affiliated by alaga...Murugan Solaiyappan
Title: Relational Database Management System Concepts(RDBMS)
Description:
Welcome to the comprehensive guide on Relational Database Management System (RDBMS) concepts, tailored for final year B.Sc. Computer Science students affiliated with Alagappa University. This document covers fundamental principles and advanced topics in RDBMS, offering a structured approach to understanding databases in the context of modern computing. PDF content is prepared from the text book Learn Oracle 8I by JOSE A RAMALHO.
Key Topics Covered:
Main Topic : DATA INTEGRITY, CREATING AND MAINTAINING A TABLE AND INDEX
Sub-Topic :
Data Integrity,Types of Integrity, Integrity Constraints, Primary Key, Foreign key, unique key, self referential integrity,
creating and maintain a table, Modifying a table, alter a table, Deleting a table
Create an Index, Alter Index, Drop Index, Function based index, obtaining information about index, Difference between ROWID and ROWNUM
Target Audience:
Final year B.Sc. Computer Science students at Alagappa University seeking a solid foundation in RDBMS principles for academic and practical applications.
About the Author:
Dr. S. Murugan is Associate Professor at Alagappa Government Arts College, Karaikudi. With 23 years of teaching experience in the field of Computer Science, Dr. S. Murugan has a passion for simplifying complex concepts in database management.
Disclaimer:
This document is intended for educational purposes only. The content presented here reflects the author’s understanding in the field of RDBMS as of 2024.
Feedback and Contact Information:
Your feedback is valuable! For any queries or suggestions, please contact muruganjit@agacollege.in
Webinar Innovative assessments for SOcial Emotional SkillsEduSkills OECD
Presentations by Adriano Linzarini and Daniel Catarino da Silva of the OECD Rethinking Assessment of Social and Emotional Skills project from the OECD webinar "Innovations in measuring social and emotional skills and what AI will bring next" on 5 July 2024
How to Handle the Separate Discount Account on Invoice in Odoo 17Celine George
In Odoo, separate discount account can be set up to accurately track and manage discounts applied on various transaction and ensure precise financial reporting and analysis
How to Configure Time Off Types in Odoo 17Celine George
Now we can take look into how to configure time off types in odoo 17 through this slide. Time-off types are used to grant or request different types of leave. Only then the authorities will have a clear view or a clear understanding of what kind of leave the employee is taking.
Split Shifts From Gantt View in the Odoo 17Celine George
Odoo allows users to split long shifts into multiple segments directly from the Gantt view.Each segment retains details of the original shift, such as employee assignment, start time, end time, and specific tasks or descriptions.
How to Create Sequence Numbers in Odoo 17Celine George
Sequence numbers are mainly used to identify or differentiate each record in a module. Sequences are customizable and can be configured in a specific pattern such as suffix, prefix or a particular numbering scheme. This slide will show how to create sequence numbers in odoo 17.
AI Risk Management: ISO/IEC 42001, the EU AI Act, and ISO/IEC 23894PECB
As artificial intelligence continues to evolve, understanding the complexities and regulations regarding AI risk management is more crucial than ever.
Amongst others, the webinar covers:
• ISO/IEC 42001 standard, which provides guidelines for establishing, implementing, maintaining, and continually improving AI management systems within organizations
• insights into the European Union's landmark legislative proposal aimed at regulating AI
• framework and methodologies prescribed by ISO/IEC 23894 for identifying, assessing, and mitigating risks associated with AI systems
Presenters:
Miriama Podskubova - Attorney at Law
Miriama is a seasoned lawyer with over a decade of experience. She specializes in commercial law, focusing on transactions, venture capital investments, IT, digital law, and cybersecurity, areas she was drawn to through her legal practice. Alongside preparing contract and project documentation, she ensures the correct interpretation and application of European legal regulations in these fields. Beyond client projects, she frequently speaks at conferences on cybersecurity, online privacy protection, and the increasingly pertinent topic of AI regulation. As a registered advocate of Slovak bar, certified data privacy professional in the European Union (CIPP/e) and a member of the international association ELA, she helps both tech-focused startups and entrepreneurs, as well as international chains, to properly set up their business operations.
Callum Wright - Founder and Lead Consultant Founder and Lead Consultant
Callum Wright is a seasoned cybersecurity, privacy and AI governance expert. With over a decade of experience, he has dedicated his career to protecting digital assets, ensuring data privacy, and establishing ethical AI governance frameworks. His diverse background includes significant roles in security architecture, AI governance, risk consulting, and privacy management across various industries, thorough testing, and successful implementation, he has consistently delivered exceptional results.
Throughout his career, he has taken on multifaceted roles, from leading technical project management teams to owning solutions that drive operational excellence. His conscientious and proactive approach is unwavering, whether he is working independently or collaboratively within a team. His ability to connect with colleagues on a personal level underscores his commitment to fostering a harmonious and productive workplace environment.
Date: June 26, 2024
Tags: ISO/IEC 42001, Artificial Intelligence, EU AI Act, ISO/IEC 23894
-------------------------------------------------------------------------------
Find out more about ISO training and certification services
Training: ISO/IEC 42001 Artificial Intelligence Management System - EN | PECB
Webinars: https://pecb.com/webinars
Article: https://pecb.com/article
-------------------------------------------------------------------------------
Views in Odoo - Advanced Views - Pivot View in Odoo 17Celine George
In Odoo, the pivot view is a graphical representation of data that allows users to analyze and summarize large datasets quickly. It's a powerful tool for generating insights from your business data.
The pivot view in Odoo is a valuable tool for analyzing and summarizing large datasets, helping you gain insights into your business operations.
2. What is Visual Basic?
•The "Visual" part refers to the method used
to create the graphical user interface (GUI).
Rather than writing numerous lines of code to
describe the appearance and location of
interface elements, you simply add pre-built
objects into place on screen
•The "Basic" part refers to the BASIC
(Beginners All-Purpose Symbolic Instruction
Code) language
3. Visual Basic Characteristics
• Rapid Application Development (RAD) tool
• Front-end applications.
•ActiveX technologies allow you to use the functionality
provided by other applications, such as Microsoft Word
word processor, Microsoft Excel spreadsheet, and other
Windows applications.
•Your finished application is a true .exe file.
4. Event-Driven programming Language?
In an event-driven application, the code doesn't follow a
predetermined path — it executes different code sections in
response to events.
Events can be triggered by the user's actions, by messages
from the system or other applications, or even from the
application itself.
The sequence of these events determines the sequence in
which the code executes, thus the path through the
application's code differs each time the program runs.
Your code can also trigger events during execution. For
example, programmatically changing the text in a text box
cause the text box's Change event to occur.
5. Interactive Development
The traditional application development process can be broken
into three distinct steps: writing, compiling, and testing code.
Unlike traditional languages, Visual Basic uses an interactive
approach to development, blurring the distinction between the
three steps.
With most languages, if you make a mistake in writing your
code, the error is caught by the compiler when you start to
compile your application. You must then find and fix the error
and begin the compile cycle again, repeating the process for
each error found.
Visual Basic interprets your code as you enter it, catching and
highlighting most syntax or spelling errors on the fly.
6. In addition to catching errors on the fly, Visual Basic also
partially compiles the code as it is entered. If the compiler
finds an error, it is highlighted in your code. You can fix the
error and continue compiling without having to start over.
Because of the interactive nature of Visual Basic, you'll find
yourself running your application frequently as you develop
it. This way you can test the effects of your code as you
work rather than waiting to compile later.
9. Working with Visual Basic Projects
A project consists of :
•One project file that keeps track of all the components (.vbp).
•One file for each form (.frm).
•One binary data file for each form containing data for properties of
controls on the form (.frx). These files are not editable and are
automatically generated for any .frm file that contains binary
properties, such as Picture or Icon.
•Optionally, one file for each class module (.cls).
•Optionally, one file for each standard module (.bas).
The project file is simply a list of all the files and objects associated
with the project, as well as information on the environment options
you set.
You can convert the project into an executable file (.exe)
10. Form Modules
Form modules (.frm file name extension) can contain textual
descriptions of the form and its controls, including their property
settings. They also contain form-level declarations of constants,
variables and procedures; event procedures; and general
procedures.
Class Modules
Class modules (.cls file name extension) are similar to form modules,
except that they have no visible user interface. You can use class
modules to create your own objects, including code for methods and
properties.
Standard Modules
Standard modules (.bas file name extension) can contain public or
module-level declarations of types, constants, variables, external
procedures, and public procedures.
11. Variables
Variable is a placeholder in memory.
Variables are used to temporarily store values during the execution
of an application.
Variables have a name (the word you use to refer to the value the
variable contains) and a data type (which determines the kind of
data the variable can store).
A variable name:
•Must begin with a letter.
•Can't contain an embedded period.
•Must not exceed 255 characters.
•Must be unique within the same scope, which is the range from
which the variable can be referenced — a procedure, a form, and so
on.
12. Implicit Declaration
You don't have to declare a variable before using it.
Visual Basic automatically creates a variable with that name, which
you can use as if you had explicitly declared it. While this is
convenient, it can lead to subtle errors in your code if you misspell a
variable name.
Example:
x = “Sam”
a = 45
Explicit Declaration
To avoid the problem of misnaming variables, you can stipulate that
Visual Basic always warn you whenever it encounters a name not
declared explicitly as a variable.
Place this statement in the Declarations section of a class, form, or
13. Scope of Variables
A variable is scoped as either a procedure-level (local) or module-
level variable.
Scope
Procedure-level
Private: Variables are private to the procedure in which they
appear.
Public: Not applicable. You cannot declare public variables
within a procedure.
Module-level
Private: Variables are private to the module in which they
appear.
Public: Variables are available to all modules.
14. The Variant Data Type
Variant variables can hold any type of data described so far, and then
some.
Variables of this type take 16 bytes, in this format:
Bytes 0 and 1 hold an integer value that states which type of data is
stored in bytes 8 through 15.
Bytes 2 through 7 are unused (with only one exception, the Decimal
subtype), and in most cases not all the bytes in the second half of the
variable are used.
For example, if a Variant holds an Integer value, the first two bytes
contain the value 2-vbInteger, bytes 8 and 9 hold the actual 16-bit value,
and all other bytes are unused.
15. Variables Used Within a Procedure
You declare them with the Dim or Static keywords.
For example:
Dim intTemp As Integer
or
Static intPermanent As Integer
Variables Used Within a Module
You create module-level variables by declaring them with the
Private keyword in the Declarations section at the top of the
module.
Private intTemp As Integer
At the module level, there is no difference between Private and
Dim, but Private is preferred because it readily contrasts with
Public and makes your code easier to understand.
16. Variables Used by All Modules
To make a module-level variable available to other modules,
use the Public keyword to declare the variable.
The values in public variables are available to all procedures
in your application. Like all module-level variables,
Public variables are declared in the Declarations section at the
top of the module.
Public intTemp As Integer
17. Constants
The syntax for declaring a constant is:
[Public|Private] Const constantname[As type] = expression
A Const statement can represent a mathematical or date/time
quantity:
Const conPi = 3.14159
Public Const conMaxPlanets As Integer = 9
Const conReleaseDate = #1/1/95#
Const conCodeName = "Enigma"
You can place more than one constant declaration on a single line if
you separate them with commas:
Public Const conPi = 3.14, conMaxPlanets = 9
18. Data Types
By default, if you don't supply a data type, the variable is given the
Variant data type.
The Variant data type can represent many different data types in
different situations.
Declaring Variables with Data Types
You must use Private, Public, Dim or Static statement to declare it As
type.
Numeric Data Types
Visual Basic supplies several numeric data types
— Byte, Integer, Long
Single (single-precision floating point), Double (double-precision
floating point), and Currency.
19. The String Data Type
Private S As String
S = "Database"
You specify a fixed-length string with this syntax:
String * size
For example, to declare a string that is always 50 characters long, use
code like this:
Dim EmpName As String * 50
The Boolean Data Type
If you have a variable that will contain simple true/false
The default value of Boolean is False.
Dim blnRunning As Boolean
20. The Date Data Type
Date and time values can be contained both in the specific Date data type
and in Variant variables.
The Object Data Type
Object variables are stored as 32-bit (4-byte) addresses that refer to
objects within an application or within some other application.
A variable declared as Object is one that can subsequently be assigned
(using the Set statement) to refer to any actual object recognized by the
application.
21. Converting Data Types
Conversion functions to convert values into a specific data type.
Conversion function Converts an expression to
Cbool Boolean
Cbyte Byte
Ccur Currency
Cdate Date
CDbl Double
Cint Integer
CLng Long
CSng Single
CStr String
Cvar Variant
22. Arrays
Fixed-Size Arrays
When declaring an array, follow the array name by the upper bound in
parentheses.
The upper bound cannot exceed the range of a Long data type
(-2,147,483,648 to 2,147,483,647).
For example
Dim Counters(14) As Integer ' 15
elements.
To specify a lower bound, provide it explicitly using the To
keyword:
Dim Sums(100 To 120) As String
23. Multidimensional Arrays
Dim MatrixA(9, 9) As Double
Either or both dimensions can be declared with explicit lower bounds:
Dim MatrixA(1 To 10, 1 To 10) As Double
24. Dynamic Arrays
A dynamic array can be resized at any time.
To create a dynamic array
1. Declare the array as dynamic by giving it an empty dimension
list.Dim DynArray()
2. Allocate the actual number of elements with a ReDim
statement.ReDim DynArray(X + 1)
The ReDim statement can appear only in a procedure.
Unlike the Dim and Static statements, ReDim is an executable
statement — it makes the application carry out an action at run time.
Each ReDim can change the number of elements,
as well as the lower and upper bounds.
ReDim DynArray(4 to 12)
25. Preserving the Contents of Dynamic Arrays
Each time you execute the ReDim statement, all the values currently
stored in the array are lost.
Sometimes you may want to change the size of the array without losing
the data in the array.
You can do this by using ReDim with the Preserve keyword.
ReDim Preserve DynArray(UBound(DynArray) + 1)
26. User-Defined Types
A user-defined type (UDT) is a compound data structure that holds
several variables of simpler data types.
Before you can use a UDT variable, you must first define its structure,
using a Type directive in the declaration section of a module:
Private Type EmployeeUDT
Name As String Department
ID As Long
Salary As Double
End Type
The Type statement can be used only at module level.
27. Private Type EmployeeRecord ' Create user-defined type.
ID As Integer ' Define elements of data type.
Name As String * 20
Address As String * 30
Phone As Long
End Type
Private Sub Form_Load()
Dim MyRecord As EmployeeRecord ' Declare variable.
' Assignment to EmployeeRecord variable must occur in a
procedure.
MyRecord.ID = 12003
MsgBox MyRecord.ID
End Sub
28. Mathematical Operators
Operator Meaning
+, - Unary positive, negative
+ Addition
- Subtraction
* Multiplication
/ Division
^ exponentiation
Interestingly, the division operator (/) always converts both its operands
to Double, which can cause some unexpected overhead.
If you're dividing an Integer or Long number by another Integer or Long
number and you aren't interested in the decimal part of the quotient, you
should use the integer division operator (), which executes faster:
29. Comparison Operators
Visual Basic supports six comparison operators, which can be applied to
both numeric and string operands:
= < <= > >= <>
Boolean
Visual Basic for Applications supports a few Boolean operators,
which are especially useful for combining multiple Boolean
subexpressions.
The operators used most frequently are
AND, OR, XOR, and NOT.
30. Rounding and Truncating
The Int function truncates a number to the integer value equal or lower
than its argument.
Print Int(1.2) ' Displays "1"
Print Int(-1.2) ' Displays "-2"
The function that actually truncates the decimal part of a number is Fix:
Print Fix(1.2) ' Displays "1“
Print Fix(-1.2) ' Displays "-1"
Round, which lets you round a decimal number to the number of
digits you want (or to the nearest integer, if the second argument
is omitted):
Print Round(1.45) ' Displays "1"
Print Round(1.55) ' Displays "2"
31. Round cont…..
When the fractional part is exactly 0.5, it rounds up if the
integer portion is an odd number and rounds down if it's
even:
Print Round(1.5), Round(2.5) ' Both display "2".
32. Breaking a Single Statement Into Multiple Lines
You can break a long statement into multiple lines in the Code window
using the line-continuation character (a space followed by an
underscore).
Using this character can make your code easier to read, both online and
when printed.
S = _
"SELECT * FROM Titles, Publishers" _
& "WHERE Publishers.PubId = Titles.PubID" _
& "AND Publishers.State = 'CA'"
You can't follow a line-continuation character with a comment on the
same line.
33. Combining Statements on One Line
You can place two or more statements on a line if you use a
colon (:) to separate them:
Text1.Text = "Hello" : Red = 255
In order to make your code more readable, however, it's better
to place each statement on a separate line.
Adding Comments to Your Code
As you read through the examples in this guide, you'll often
come across the comment symbol ('). This symbol tells Visual
Basic to ignore the words that follow it.
34. Procedures
These can be of type Sub or Function, depending on whether they
return a value to the caller.
Each procedure has a unique name, a scope, a list of expected
arguments, and—if it's a function—a return value.
Scope can be Private, Public, or Friend.
A Private procedure can be invoked only from within the module in
which it's defined.
A Public procedure can be invoked from outside the module.
A Friend procedure is halfway between Private and Public: Such a
procedure can be called from anywhere in the current project, but
not from outside it. This difference becomes important only if you're
within a project of a type other than Standard EXE, one that
therefore exposes its classes to other applications in the form of
COM components.
35. Control Flow Branch Statements
If...Then
If condition Then statement
If condition Then
statements
End If
If...Then...Else
If condition1 Then
[statementblock-1]
[ElseIf condition2 Then
[statementblock-2]] ...
[Else
[statementblock-n]]
End If
36. ' Single line version, without Else clause
If x > 0 Then y = x
' Single line version, with Else clause
If x > 0 Then y = x Else y = 0
' Single line, but with multiple statements separated by colons
If x > 0 Then y = x: x = 0 Else y = 0
37. ' Multiline version of the above code (more readable)
If x > 0 Then
y = x
x = 0
Else
y = 0
End If
' An example of If..ElseIf..Else block
If x > 0 Then
y = x
ElseIf x < 0 Then
y = x * x
Else ' X is surely 0, no need to actually test it.
x = -1
End If
38. Select Case
A Select Case statement provides capability similar to the If...Then...Else
statement, but it makes code more readable when there are several
choices.
Select Case testexpression
[Case expressionlist1
[statementblock-1]]
[Case expressionlist2
[statementblock-2]]
.
.
.
[Case Else
[statementblock-n]]
End Select
39. The Select Case statement is less versatile than the If block in that it
can test only one expression against a list of values:
Select Case Mid$(Text, i, 1)
Case "0" To "9"
' It's a digit.
Case "A" To "Z", "a" To "z"
' It's a letter.
Case ".", ",", " ", ";", ":", "?"
' It's a punctuation symbol or a space.
Case Else
' It's something else.
End Select
40. Loop Structures
Do While condition
statements
Loop
Do
statements
Loop While condition
Do
statements
Loop Until condition
While condition
[statements]
Wend
41. For...Next
The syntax is:
For counter = start To end [Step increment]
statements
Next [counter]
The arguments counter, start, end, and increment are all numeric.
For Each...Next
Syntax :
For Each element In group
statements
Next element
42. IIf Function
Returns one of two parts, depending on the evaluation of an expression.
Syntax
IIf (expr, truepart, falsepart)
expr. Expression you want to evaluate.
truepart. Value or expression returned if expr is True.
falsepart. Value or expression returned if expr is False.
IIf always evaluates both truepart and falsepart, even though it returns
only one of them. Because of this, you should watch for undesirable side
effects.
For example, if evaluating falsepart results in a division by zero error, an
error occurs even if expr is True.
43. With Statement
Executes a series of statements on a single object or a user defined type.
Syntax
With object
[statements]
End With
Example:
With MyObject
.Height = 100 ' Same as MyObject.Height = 100.
.Caption = "Hello" ' Same as MyObject.Caption = "Hello".
With .Font
.Color = Red ' Same as MyObject.Font.Color = Red.
.Bold = True ' Same as MyObject.Font.Bold = True.
End With