There are three types of errors in programming: syntax errors, run-time errors, and logic errors. Syntax errors occur when code violates rules and prevent programs from running. Run-time errors are unpredictable and can be trapped using error handling. Logic errors produce unexpected results and are hardest to find, requiring debugging tools. Visual Basic provides debugging aids like breakpoints, stepping, and watch expressions to help locate logic errors.
A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method arguments. In C#, every executed instruction is performed in the context of a method.
A method is a code block that contains a series of statements. A program causes the statements to be executed by calling the method and specifying any required method arguments. In C#, every executed instruction is performed in the context of a method.
INTRODUCTION
COMPARISON BETWEEN NORMAL FUNCTION AND INLINE FUNCTION
PROS AND CONS
WHY WHEN AND HOW TO USED?
GENERAL STRUCTURE OF INLINE FUNCTION
EXAMPLE WITH PROGRAM CODE
oops concept in java | object oriented programming in javaCPD INDIA
object oriented programming is a key concept for the development of application in windows as well as web based application environment. oops concept maps real world through its concept of classes, objects, inheritance, polymorphism which help in making a robust application.
INTRODUCTION
COMPARISON BETWEEN NORMAL FUNCTION AND INLINE FUNCTION
PROS AND CONS
WHY WHEN AND HOW TO USED?
GENERAL STRUCTURE OF INLINE FUNCTION
EXAMPLE WITH PROGRAM CODE
oops concept in java | object oriented programming in javaCPD INDIA
object oriented programming is a key concept for the development of application in windows as well as web based application environment. oops concept maps real world through its concept of classes, objects, inheritance, polymorphism which help in making a robust application.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
This is a presentation by Dada Robert in a Your Skill Boost masterclass organised by the Excellence Foundation for South Sudan (EFSS) on Saturday, the 25th and Sunday, the 26th of May 2024.
He discussed the concept of quality improvement, emphasizing its applicability to various aspects of life, including personal, project, and program improvements. He defined quality as doing the right thing at the right time in the right way to achieve the best possible results and discussed the concept of the "gap" between what we know and what we do, and how this gap represents the areas we need to improve. He explained the scientific approach to quality improvement, which involves systematic performance analysis, testing and learning, and implementing change ideas. He also highlighted the importance of client focus and a team approach to quality improvement.
2024.06.01 Introducing a competency framework for languag learning materials ...Sandy Millin
http://sandymillin.wordpress.com/iateflwebinar2024
Published classroom materials form the basis of syllabuses, drive teacher professional development, and have a potentially huge influence on learners, teachers and education systems. All teachers also create their own materials, whether a few sentences on a blackboard, a highly-structured fully-realised online course, or anything in between. Despite this, the knowledge and skills needed to create effective language learning materials are rarely part of teacher training, and are mostly learnt by trial and error.
Knowledge and skills frameworks, generally called competency frameworks, for ELT teachers, trainers and managers have existed for a few years now. However, until I created one for my MA dissertation, there wasn’t one drawing together what we need to know and do to be able to effectively produce language learning materials.
This webinar will introduce you to my framework, highlighting the key competencies I identified from my research. It will also show how anybody involved in language teaching (any language, not just English!), teacher training, managing schools or developing language learning materials can benefit from using the framework.
Ethnobotany and Ethnopharmacology:
Ethnobotany in herbal drug evaluation,
Impact of Ethnobotany in traditional medicine,
New development in herbals,
Bio-prospecting tools for drug discovery,
Role of Ethnopharmacology in drug evaluation,
Reverse Pharmacology.
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Students, digital devices and success - Andreas Schleicher - 27 May 2024..pptxEduSkills OECD
Andreas Schleicher presents at the OECD webinar ‘Digital devices in schools: detrimental distraction or secret to success?’ on 27 May 2024. The presentation was based on findings from PISA 2022 results and the webinar helped launch the PISA in Focus ‘Managing screen time: How to protect and equip students against distraction’ https://www.oecd-ilibrary.org/education/managing-screen-time_7c225af4-en and the OECD Education Policy Perspective ‘Students, digital devices and success’ can be found here - https://oe.cd/il/5yV
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
What is the purpose of the Sabbath Law in the Torah. It is interesting to compare how the context of the law shifts from Exodus to Deuteronomy. Who gets to rest, and why?
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Unit 8 - Information and Communication Technology (Paper I).pdf
Error handling and debugging in vb
1. Error-Handling and Debugging
• errors can be grouped into three categories:
1. Syntax errors
2. Run-time errors
3. Logic errors
• Syntax errors occur when you mistype a command or leave out
an expected phrase or argument.
• Visual Basic detects these errors as they occur and even
provides help in correcting them.
• You cannot run a Visual Basic program until all syntax errors
have been corrected.
• A syntax error (compiler error) is a programming mistake that
violates the rules of Visual Basic, such as a misspelled
property or keyword.
2. Error-Handling and Debugging
• Run-time errors are usually beyond your program's control.
Examples include:
• when a variable takes on an unexpected value (divide by zero),
when a drive door is left open, or when a file is not found. Visual
Basic allows you to trap such errors and make attempts to correct
them.
• Logic errors are the most difficult to find. With logic errors, the
program will usually run, but will produce incorrect or unexpected
results.
• A logic error is a human error — a programming mistake that makes
the program code produce the wrong results
• The Visual Basic debugger is an aid in detecting logic errors.
•
3. Error-Handling and Debugging
• Some ways to minimize errors:
• Design your application carefully. More design time
means less debugging time.
• Use comments where applicable to help you
remember what you were trying to do.
• Use consistent and meaningful naming conventions
for your variables, objects,and procedures.
4. Error-Handling and Debugging
• Run-Time Error Trapping and Handling
• Run-time errors are trappable.
• That is, Visual Basic recognizes an error has occurred
and enables you to trap it and take corrective action.
• Error trapping is enabled with the On Error statement:
1. On Error GoTo label
2. On Error GoTo 0
3. On Error GoTo line#
4. On Error Resume Next
5. Error-Handling and Debugging
1. On Error GoTo label
• ddThe Visual Basic On Error GoTo statement is the
foundation of handling trappable errors.
• When you execute an On Error GoTo Label statement
in your code, execution is transferred to the code
starting at Label if a trappable error has occurred.
6. Error-Handling and Debugging
• The best way to explain how to use error trapping is to look at
an outline of an example procedure with error trapping.
Sub SubExample()
. . [Declare variables, ...]
• . On Error GoTo HandleErrors
• . . [Procedure code]
• . Exit Sub
HandleErrors:
• . [Error handling code]
End Sub
7. Error-Handling and Debugging
• Once you have set up the variable declarations, constant
definitions, and any other procedure preliminaries, the On
Error statement is executed to enable error trapping.
• Your normal procedure code follows this statement.
• The error handling code goes at the end of the procedure,
following the HandleErrors statement label.
• This is the code that is executed if an error is encountered
anywhere in the Sub procedure.
• Note you must exit (with Exit Sub) from the code before
reaching the HandleErrors line to avoid inadvertent
execution of the error handling code.
8. Error-Handling and Debugging
• On Error GoTo 0
• Since the error handling code is in the same procedure
where an error occurs, all variables in that procedure are
available for possible corrective action.
• If at some time in your procedure, you want to turn off
error trapping, that is done with the following
statement:On Error GoTo 0
• The Err object returns, in its Number property
(Err.Number), the number associated with the current
error condition.
• The Error() function takes this error number as its
argument and returns a string description of the error.
9. Error-Handling and Debugging
• Once an error has been trapped and some action taken, control must be
returned to your application.
• That control is returned via the Resume statement. There are three
options:
• Resume Lets you retry the operation that caused the
error. That is, control is returned to the line
where the error occurred. This could be
dangerous in that, if the error has not been
corrected (via code or by the user), an infinite
loop between the error handler and the
procedure code may result.
• Resume Next Program control is returned to the line
immediately following the line where the error
occurred.
• Resume label Program control is returned to the line labeled label.
10. Error-Handling and Debugging
• On Error Resume Next
• The On Error Resume Next statement provides an
easy way to disregard errors, if you want to do so.
• Once you execute this statement, execution continues
with the next line of code if the current line generates
an error, and the error is disregarded.
11. Error-Handling and Debugging
• Debugging In Visual Basic
• Visual Basic offers a powerful suite of debugging options—
notably the ability to single-step through your code as it’s
executing.
• The standard way to debug is to place a breakpoint at a
particular line in your code, and when execution reaches that
line, it will halt and Visual Basic will enter the Debug state,
giving you access to your code and variables.
• You can examine the contents of those variables and work
through your code line by line, watching program execution
behind the scenes.
• You place a breakpoint in code by moving the text insertion
caret to that line and either selecting Toggle Breakpoint in the
Debug menu or pressing F9.
12. Error-Handling and Debugging
• To move through your program step-by-step, you can
select these stepping options in the Debug menu:
• Step Into—Single-step through the code, entering
called procedures if encountered.
• Step Over —Single-step through the code, stepping
over procedure calls.
• Step Out— Step out of the current procedure.
13. Error-Handling and Debugging
• immediate window
• You can print directly to the immediate window while an
application is running.
• Sometimes, this is all the debugging you may need. A few
carefully placed print statements can sometimes clear up
all logic errors, especially in small applications.
• To print to the immediate window, use the Print method:
• print[List of variables separated by commas or semi-
colons]
• Eg: ?a;b or print a; b
14. Error-Handling and Debugging
• Locals Window
• The locals window shows the value of any variables
within the scope of the current procedure.
• As execution switches from procedure to procedure,
the contents of this window changes to reflect only
the variables applicable to the current procedure.
• Repeat the above example and notice the values of A
and B also appear in the locals window.
15. Error-Handling and Debugging
• Watch Expressions
• The Add Watch option on the Debug menu allows you to
establish watch expressions for your application.
• Watch expressions can be variable values or logical
expressions you want to view or test. Values of watch
expressions are displayed in the watch window.
• In break mode, you can use the Quick Watch button on the
toolbar to add watch expressions you need.
• Simply put the cursor on the variable or expression you want
to add to the watch list and click the Quick Watch button.
• Watch expressions can be edited using the Edit Watch option
on the Debug menu.