SlideShare a Scribd company logo
.NET
Operators,
Functions ,Option
Shyam N. Chawda +91 7874391191 1
Operators
 An operator is a symbol or other character
indicating an arithmetic operation that acts
on one or more elements in an application.
 That take one operand are called unary
operators.
 That take two operands are called binary
operators.
2Shyam N. Chawda
Operators
Arithmetic ^, –, *, /, , Mod, +
Assignment =, ^=, *=, /=, =, +=, -=,
&=
Comparison/
Relational
=, <>, <, >, <=, >=, Like, Is
Concatenation &, +
Logical/bitwise Not, And, Or, Xor, AndAlso,
OrElse
Miscellaneous
operations
AddressOf, GetType
Arithmetic
  is integer division.
 / is regular division.
 34 / 2.5 = 13.6
 34  2.5 = 17 (convert 2.5 into 2 then)
 ^ exponent operator.
 2^4 = 16
4Shyam N. Chawda
Assignment
=
5Shyam N. Chawda
Comparison / Relational
 =
 Dim a, b As Integer
a = 5
b = 10
If a = b Then
logic…….
End If
6Shyam N. Chawda
Comparison / Relational
If TypeOf btnIntDiv Is Button Then
MsgBox("Hai")
End If
Use the TypeOf...Is operator to determine
whether a given object:
 Is an instance of a given class
7Shyam N. Chawda
Comparison / Relational
Like
 Defined only for operands of type
String.
 The result is True if the first operand
matches the pattern given in the second
operand; False if not.
8Shyam N. Chawda
Comparison / Relational
Dim ans As Boolean
ans = "F" Like "F"
ans = "F" Like "f"
ans = "F" Like "FFF"
ans = "aBBBa" Like "a*a"
ans = "F" Like "[A-Z]"
ans = "F" Like "[!A-Z]"
ans = "a2a" Like "a#a"
ans = "aM5b" Like "a[L-P]#[!c-e]"
9Shyam N. Chawda
Comparison / Relational
ans = "BAT123khg" Like "B?T*"
ans = "CAT123khg" Like "B?T*"
10Shyam N. Chawda
Logical /bitwise
AndAlso
 Only And?
 AndAlso performs logical short-circuiting: if
the first operand of the expression is False,
the second operand is not evaluated.
b = (93 > 67) AndAlso MyFunction()
11Shyam N. Chawda
Logical /bitwise
OrElse
 OR ?
 OrElse performs logical short-circuiting: if
the first operand of the expression is True,
the second operand is not evaluated.
12Shyam N. Chawda
Multiple statements in one line ( : )
x = 3 : y = 5 : z = 6
One statement in multiple lines ( _ )
name = "Mr." & " " & "Karna" & _
" " & "Bhavin" & " " & _
", Trivedi"
13Shyam N. Chawda
Comment
 Comments are brief explanatory notes
added to code for the benefit of those
reading it.
 Comment ( )
Uncomment ( )
buttons on the Edit toolbar.
 REM:
14Shyam N. Chawda
Option Explicit
 Used at file level to force explicit
declaration of all variables in that file.
 On (Default)
Enables Option Explicit checking.
 Off
Disables Option Explicit checking.
Default - Object type.
15Shyam N. Chawda
Option Explicit
Option Explicit On
Dim MyVar As Integer
MyInt = 10
MyVar = 10
16Shyam N. Chawda
Option Strict
 Restricts implicit data type conversions
 On
Generate an error
 Off (Default)
Compiler default is Option Strict Off if do not
specify Option Strict in your code.
17Shyam N. Chawda
Option Strict
Dim MyVar As Integer
MyVar = 1000
'Attempting to convert to an Integer
generates an error.
MyVar = 1234567890.9876542
MsgBox(MyVar)
18Shyam N. Chawda
Object data type
 Dim objDb As Object
 when you do not know at compile time
what data type the variable might point to.
 Can point to data of any data type,
19Shyam N. Chawda
Object data type
 Whatever data type it refers to, an Object
variable does not contain the data value
itself, but rather a pointer to the value.
 It always uses four bytes in computer
memory, but this does not include the
storage for the data representing the value
of the variable.
20Shyam N. Chawda
Object data type
 The Object data type is slower than using
explicit data types.
 The code that uses the pointer to locate
the data, Object variables holding value
types are slightly slower to access than
explicitly typed variables.
21Shyam N. Chawda
IMP functions , constants
 vbCrLf
Carriage return/linefeed character
combination.
 vbNewLine
Newline character.
 vbTab
Tab character.
22Shyam N. Chawda
IMP functions , constants
Space(Integer)
InputBox()
MsgBox()
MessageBox.Show()
Val()
23Shyam N. Chawda
With…End With
 when we want to set number of properties
and methods related with one control or
object that time use with..end with block.
 It executes series of statement related to
one control or object
24Shyam N. Chawda
With…End With
Syntax:
With objname
end With
25Shyam N. Chawda
With…End With
26Shyam N. Chawda
With…End With
With MyLabel
.Height = 200
.Width = 200
.Text = "Demo Label"
End With
27Shyam N. Chawda
Thanks
Any questions?
www.shyamsir.com
Shyam N. Chawda 28

More Related Content

What's hot

Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
Spotle.ai
 
Operators in java
Operators in javaOperators in java
Operators in java
Then Murugeshwari
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
classall
 
Variables in python
Variables in pythonVariables in python
Variables in python
Jaya Kumari
 
Object Oriented Programming Lecture Notes
Object Oriented Programming Lecture NotesObject Oriented Programming Lecture Notes
Object Oriented Programming Lecture Notes
FellowBuddy.com
 
Control Flow Statements
Control Flow Statements Control Flow Statements
Control Flow Statements
Tarun Sharma
 
Arrays in Java
Arrays in JavaArrays in Java
Arrays in Java
Naz Abdalla
 
Visual programming lecture
Visual programming lecture Visual programming lecture
Visual programming lecture
AqsaHayat3
 
Python programming : Control statements
Python programming : Control statementsPython programming : Control statements
Python programming : Control statements
Emertxe Information Technologies Pvt Ltd
 
DBMS PPT
DBMS PPTDBMS PPT
DBMS PPT
Prabhu Goyal
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in Java
Niloy Saha
 
Database Triggers
Database TriggersDatabase Triggers
Database Triggers
Aliya Saldanha
 
pl/sql Procedure
pl/sql Procedurepl/sql Procedure
pl/sql Procedure
Pooja Dixit
 
MySQL Views
MySQL ViewsMySQL Views
Python Functions
Python   FunctionsPython   Functions
Python Functions
Mohammed Sikander
 
Conditionalstatement
ConditionalstatementConditionalstatement
Conditionalstatement
RaginiJain21
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHON
vikram mahendra
 
Control structures in java
Control structures in javaControl structures in java
Control structures in java
VINOTH R
 
Python : Data Types
Python : Data TypesPython : Data Types

What's hot (20)

Class and Objects in Java
Class and Objects in JavaClass and Objects in Java
Class and Objects in Java
 
Operators in java
Operators in javaOperators in java
Operators in java
 
introduction to visual basic PPT.pptx
introduction to visual basic PPT.pptxintroduction to visual basic PPT.pptx
introduction to visual basic PPT.pptx
 
Variables in python
Variables in pythonVariables in python
Variables in python
 
Object Oriented Programming Lecture Notes
Object Oriented Programming Lecture NotesObject Oriented Programming Lecture Notes
Object Oriented Programming Lecture Notes
 
Control Flow Statements
Control Flow Statements Control Flow Statements
Control Flow Statements
 
Arrays in Java
Arrays in JavaArrays in Java
Arrays in Java
 
Visual programming lecture
Visual programming lecture Visual programming lecture
Visual programming lecture
 
Python programming : Control statements
Python programming : Control statementsPython programming : Control statements
Python programming : Control statements
 
DBMS PPT
DBMS PPTDBMS PPT
DBMS PPT
 
Control Statements in Java
Control Statements in JavaControl Statements in Java
Control Statements in Java
 
Database Triggers
Database TriggersDatabase Triggers
Database Triggers
 
Trigger
TriggerTrigger
Trigger
 
pl/sql Procedure
pl/sql Procedurepl/sql Procedure
pl/sql Procedure
 
MySQL Views
MySQL ViewsMySQL Views
MySQL Views
 
Python Functions
Python   FunctionsPython   Functions
Python Functions
 
Conditionalstatement
ConditionalstatementConditionalstatement
Conditionalstatement
 
FLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHONFLOW OF CONTROL-INTRO PYTHON
FLOW OF CONTROL-INTRO PYTHON
 
Control structures in java
Control structures in javaControl structures in java
Control structures in java
 
Python : Data Types
Python : Data TypesPython : Data Types
Python : Data Types
 

Viewers also liked

Looping statement in vb.net
Looping statement in vb.netLooping statement in vb.net
Looping statement in vb.netilakkiya
 
Visual Studio.NET
Visual Studio.NETVisual Studio.NET
Visual Studio.NET
salonityagi
 
Decision statements in vb.net
Decision statements in vb.netDecision statements in vb.net
Decision statements in vb.netilakkiya
 
File handling in vb.net
File handling in vb.netFile handling in vb.net
File handling in vb.net
Everywhere
 
Introduction to VB.NET - UP SITF
Introduction to VB.NET - UP SITFIntroduction to VB.NET - UP SITF
Introduction to VB.NET - UP SITF
John Patrick Oliveros
 
VB.Net GUI Unit_01
VB.Net GUI Unit_01VB.Net GUI Unit_01
VB.Net GUI Unit_01
Prashanth Shivakumar
 
Mobile Application
Mobile ApplicationMobile Application
Mobile Application
Shyam Sir
 
If Else .. Select Case in VB.NET
If Else .. Select Case in VB.NETIf Else .. Select Case in VB.NET
If Else .. Select Case in VB.NET
Shyam Sir
 
Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
Ranjuma Shubhangi
 
Moving ASP.NET MVC to ASP.NET Core
Moving ASP.NET MVC to ASP.NET Core Moving ASP.NET MVC to ASP.NET Core
Moving ASP.NET MVC to ASP.NET Core
John Patrick Oliveros
 
History object
History objectHistory object
History objectilakkiya
 
Part21 combobox vb.net
Part21 combobox vb.netPart21 combobox vb.net
Part21 combobox vb.net
Girija Muscut
 
Part17 radio button using vb.net 2012
Part17 radio button using vb.net 2012Part17 radio button using vb.net 2012
Part17 radio button using vb.net 2012
Girija Muscut
 
Hanuman chalisa in tamil
Hanuman chalisa in tamilHanuman chalisa in tamil
Hanuman chalisa in tamil
Girija Muscut
 
Switchable Map APIs with Drupal
Switchable Map APIs with DrupalSwitchable Map APIs with Drupal
Switchable Map APIs with Drupal
Ranel Padon
 
Python Programming - IV. Program Components (Functions, Classes, Modules, Pac...
Python Programming - IV. Program Components (Functions, Classes, Modules, Pac...Python Programming - IV. Program Components (Functions, Classes, Modules, Pac...
Python Programming - IV. Program Components (Functions, Classes, Modules, Pac...
Ranel Padon
 
Python Programming - XIII. GUI Programming
Python Programming - XIII. GUI ProgrammingPython Programming - XIII. GUI Programming
Python Programming - XIII. GUI ProgrammingRanel Padon
 
Debugging in visual studio (basic level)
Debugging in visual studio (basic level)Debugging in visual studio (basic level)
Debugging in visual studio (basic level)
Larry Nung
 
Prolog -Cpt114 - Week3
Prolog -Cpt114 - Week3Prolog -Cpt114 - Week3
Prolog -Cpt114 - Week3a_akhavan
 

Viewers also liked (20)

Looping statement in vb.net
Looping statement in vb.netLooping statement in vb.net
Looping statement in vb.net
 
Visual Studio.NET
Visual Studio.NETVisual Studio.NET
Visual Studio.NET
 
Decision statements in vb.net
Decision statements in vb.netDecision statements in vb.net
Decision statements in vb.net
 
File handling in vb.net
File handling in vb.netFile handling in vb.net
File handling in vb.net
 
Introduction to VB.NET - UP SITF
Introduction to VB.NET - UP SITFIntroduction to VB.NET - UP SITF
Introduction to VB.NET - UP SITF
 
VB.Net GUI Unit_01
VB.Net GUI Unit_01VB.Net GUI Unit_01
VB.Net GUI Unit_01
 
Mobile Application
Mobile ApplicationMobile Application
Mobile Application
 
If Else .. Select Case in VB.NET
If Else .. Select Case in VB.NETIf Else .. Select Case in VB.NET
If Else .. Select Case in VB.NET
 
Visual Basic Controls ppt
Visual Basic Controls pptVisual Basic Controls ppt
Visual Basic Controls ppt
 
Moving ASP.NET MVC to ASP.NET Core
Moving ASP.NET MVC to ASP.NET Core Moving ASP.NET MVC to ASP.NET Core
Moving ASP.NET MVC to ASP.NET Core
 
History object
History objectHistory object
History object
 
Part21 combobox vb.net
Part21 combobox vb.netPart21 combobox vb.net
Part21 combobox vb.net
 
Part17 radio button using vb.net 2012
Part17 radio button using vb.net 2012Part17 radio button using vb.net 2012
Part17 radio button using vb.net 2012
 
Hanuman chalisa in tamil
Hanuman chalisa in tamilHanuman chalisa in tamil
Hanuman chalisa in tamil
 
Working in Visual Studio.Net
Working in Visual Studio.NetWorking in Visual Studio.Net
Working in Visual Studio.Net
 
Switchable Map APIs with Drupal
Switchable Map APIs with DrupalSwitchable Map APIs with Drupal
Switchable Map APIs with Drupal
 
Python Programming - IV. Program Components (Functions, Classes, Modules, Pac...
Python Programming - IV. Program Components (Functions, Classes, Modules, Pac...Python Programming - IV. Program Components (Functions, Classes, Modules, Pac...
Python Programming - IV. Program Components (Functions, Classes, Modules, Pac...
 
Python Programming - XIII. GUI Programming
Python Programming - XIII. GUI ProgrammingPython Programming - XIII. GUI Programming
Python Programming - XIII. GUI Programming
 
Debugging in visual studio (basic level)
Debugging in visual studio (basic level)Debugging in visual studio (basic level)
Debugging in visual studio (basic level)
 
Prolog -Cpt114 - Week3
Prolog -Cpt114 - Week3Prolog -Cpt114 - Week3
Prolog -Cpt114 - Week3
 

Similar to Operators , Functions and Options in VB.NET

vb.net.pdf
vb.net.pdfvb.net.pdf
vb.net.pdf
VimalSangar1
 
Chapter3
Chapter3Chapter3
Chapter3
Subhadip Pal
 
Mini-lab 1: Stochastic Gradient Descent classifier, Optimizing Logistic Regre...
Mini-lab 1: Stochastic Gradient Descent classifier, Optimizing Logistic Regre...Mini-lab 1: Stochastic Gradient Descent classifier, Optimizing Logistic Regre...
Mini-lab 1: Stochastic Gradient Descent classifier, Optimizing Logistic Regre...
Yao Yao
 
ET DAH SI HAN HAN ADIKNYA SI WIDIANTORO RIBUT MULU SAMA ABANG WIDI
ET DAH SI HAN HAN ADIKNYA SI WIDIANTORO RIBUT MULU SAMA ABANG WIDIET DAH SI HAN HAN ADIKNYA SI WIDIANTORO RIBUT MULU SAMA ABANG WIDI
ET DAH SI HAN HAN ADIKNYA SI WIDIANTORO RIBUT MULU SAMA ABANG WIDI
IrlanMalik
 
C sharp part 001
C sharp part 001C sharp part 001
C sharp part 001
Ralph Weber
 
Basics of Javascript
Basics of JavascriptBasics of Javascript
Basics of Javascript
Universe41
 
fundamentals of JavaScript for students.ppt
fundamentals of JavaScript for students.pptfundamentals of JavaScript for students.ppt
fundamentals of JavaScript for students.ppt
dejen6
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational model
ATS SBGI MIRAJ
 
Python
PythonPython
The JavaScript Programming Language
The JavaScript Programming LanguageThe JavaScript Programming Language
The JavaScript Programming Language
Mohammed Irfan Shaikh
 
Engineering Student MuleSoft Meetup#6 - Basic Understanding of DataWeave With...
Engineering Student MuleSoft Meetup#6 - Basic Understanding of DataWeave With...Engineering Student MuleSoft Meetup#6 - Basic Understanding of DataWeave With...
Engineering Student MuleSoft Meetup#6 - Basic Understanding of DataWeave With...
Jitendra Bafna
 
RDBMS
RDBMSRDBMS
RDBMS
NilaNila16
 
Scilab as a calculator
Scilab as a calculatorScilab as a calculator
Scilab as a calculator
Scilab
 
MATLAB Basics-Part1
MATLAB Basics-Part1MATLAB Basics-Part1
MATLAB Basics-Part1
Elaf A.Saeed
 
arrays.pptx
arrays.pptxarrays.pptx
arrays.pptx
SachinBhosale73
 
3- Operators in Java
3- Operators in Java3- Operators in Java
3- Operators in Java
Ghadeer AlHasan
 
JavaScript number object.pptx
JavaScript number object.pptxJavaScript number object.pptx
JavaScript number object.pptx
Steins18
 
MODULE 5- EDA.pptx
MODULE 5- EDA.pptxMODULE 5- EDA.pptx
MODULE 5- EDA.pptx
nikshaikh786
 
03. Week 03.pptx
03. Week 03.pptx03. Week 03.pptx
03. Week 03.pptx
Vinc2ntCabrera
 
Perl
PerlPerl

Similar to Operators , Functions and Options in VB.NET (20)

vb.net.pdf
vb.net.pdfvb.net.pdf
vb.net.pdf
 
Chapter3
Chapter3Chapter3
Chapter3
 
Mini-lab 1: Stochastic Gradient Descent classifier, Optimizing Logistic Regre...
Mini-lab 1: Stochastic Gradient Descent classifier, Optimizing Logistic Regre...Mini-lab 1: Stochastic Gradient Descent classifier, Optimizing Logistic Regre...
Mini-lab 1: Stochastic Gradient Descent classifier, Optimizing Logistic Regre...
 
ET DAH SI HAN HAN ADIKNYA SI WIDIANTORO RIBUT MULU SAMA ABANG WIDI
ET DAH SI HAN HAN ADIKNYA SI WIDIANTORO RIBUT MULU SAMA ABANG WIDIET DAH SI HAN HAN ADIKNYA SI WIDIANTORO RIBUT MULU SAMA ABANG WIDI
ET DAH SI HAN HAN ADIKNYA SI WIDIANTORO RIBUT MULU SAMA ABANG WIDI
 
C sharp part 001
C sharp part 001C sharp part 001
C sharp part 001
 
Basics of Javascript
Basics of JavascriptBasics of Javascript
Basics of Javascript
 
fundamentals of JavaScript for students.ppt
fundamentals of JavaScript for students.pptfundamentals of JavaScript for students.ppt
fundamentals of JavaScript for students.ppt
 
Intro to relational model
Intro to relational modelIntro to relational model
Intro to relational model
 
Python
PythonPython
Python
 
The JavaScript Programming Language
The JavaScript Programming LanguageThe JavaScript Programming Language
The JavaScript Programming Language
 
Engineering Student MuleSoft Meetup#6 - Basic Understanding of DataWeave With...
Engineering Student MuleSoft Meetup#6 - Basic Understanding of DataWeave With...Engineering Student MuleSoft Meetup#6 - Basic Understanding of DataWeave With...
Engineering Student MuleSoft Meetup#6 - Basic Understanding of DataWeave With...
 
RDBMS
RDBMSRDBMS
RDBMS
 
Scilab as a calculator
Scilab as a calculatorScilab as a calculator
Scilab as a calculator
 
MATLAB Basics-Part1
MATLAB Basics-Part1MATLAB Basics-Part1
MATLAB Basics-Part1
 
arrays.pptx
arrays.pptxarrays.pptx
arrays.pptx
 
3- Operators in Java
3- Operators in Java3- Operators in Java
3- Operators in Java
 
JavaScript number object.pptx
JavaScript number object.pptxJavaScript number object.pptx
JavaScript number object.pptx
 
MODULE 5- EDA.pptx
MODULE 5- EDA.pptxMODULE 5- EDA.pptx
MODULE 5- EDA.pptx
 
03. Week 03.pptx
03. Week 03.pptx03. Week 03.pptx
03. Week 03.pptx
 
Perl
PerlPerl
Perl
 

More from Shyam Sir

Hosting
HostingHosting
Hosting
Shyam Sir
 
It new2015
It new2015It new2015
It new2015
Shyam Sir
 
State Management in ASP.NET
State Management in ASP.NETState Management in ASP.NET
State Management in ASP.NET
Shyam Sir
 
MVC First Basic
MVC First BasicMVC First Basic
MVC First Basic
Shyam Sir
 
Basic Concept of ASP.NET
Basic Concept of ASP.NETBasic Concept of ASP.NET
Basic Concept of ASP.NET
Shyam Sir
 
ASP.NET with VB.NET
 ASP.NET with VB.NET ASP.NET with VB.NET
ASP.NET with VB.NET
Shyam Sir
 
Master page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NETMaster page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NET
Shyam Sir
 

More from Shyam Sir (7)

Hosting
HostingHosting
Hosting
 
It new2015
It new2015It new2015
It new2015
 
State Management in ASP.NET
State Management in ASP.NETState Management in ASP.NET
State Management in ASP.NET
 
MVC First Basic
MVC First BasicMVC First Basic
MVC First Basic
 
Basic Concept of ASP.NET
Basic Concept of ASP.NETBasic Concept of ASP.NET
Basic Concept of ASP.NET
 
ASP.NET with VB.NET
 ASP.NET with VB.NET ASP.NET with VB.NET
ASP.NET with VB.NET
 
Master page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NETMaster page and Theme ASP.NET with VB.NET
Master page and Theme ASP.NET with VB.NET
 

Recently uploaded

From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Tobias Schneck
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Product School
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
Elena Simperl
 

Recently uploaded (20)

From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdfFIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
FIDO Alliance Osaka Seminar: Passkeys at Amazon.pdf
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
Kubernetes & AI - Beauty and the Beast !?! @KCD Istanbul 2024
 
Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...Mission to Decommission: Importance of Decommissioning Products to Increase E...
Mission to Decommission: Importance of Decommissioning Products to Increase E...
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Knowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and backKnowledge engineering: from people to machines and back
Knowledge engineering: from people to machines and back
 

Operators , Functions and Options in VB.NET

  • 2. Operators  An operator is a symbol or other character indicating an arithmetic operation that acts on one or more elements in an application.  That take one operand are called unary operators.  That take two operands are called binary operators. 2Shyam N. Chawda
  • 3. Operators Arithmetic ^, –, *, /, , Mod, + Assignment =, ^=, *=, /=, =, +=, -=, &= Comparison/ Relational =, <>, <, >, <=, >=, Like, Is Concatenation &, + Logical/bitwise Not, And, Or, Xor, AndAlso, OrElse Miscellaneous operations AddressOf, GetType
  • 4. Arithmetic  is integer division.  / is regular division.  34 / 2.5 = 13.6  34 2.5 = 17 (convert 2.5 into 2 then)  ^ exponent operator.  2^4 = 16 4Shyam N. Chawda
  • 6. Comparison / Relational  =  Dim a, b As Integer a = 5 b = 10 If a = b Then logic……. End If 6Shyam N. Chawda
  • 7. Comparison / Relational If TypeOf btnIntDiv Is Button Then MsgBox("Hai") End If Use the TypeOf...Is operator to determine whether a given object:  Is an instance of a given class 7Shyam N. Chawda
  • 8. Comparison / Relational Like  Defined only for operands of type String.  The result is True if the first operand matches the pattern given in the second operand; False if not. 8Shyam N. Chawda
  • 9. Comparison / Relational Dim ans As Boolean ans = "F" Like "F" ans = "F" Like "f" ans = "F" Like "FFF" ans = "aBBBa" Like "a*a" ans = "F" Like "[A-Z]" ans = "F" Like "[!A-Z]" ans = "a2a" Like "a#a" ans = "aM5b" Like "a[L-P]#[!c-e]" 9Shyam N. Chawda
  • 10. Comparison / Relational ans = "BAT123khg" Like "B?T*" ans = "CAT123khg" Like "B?T*" 10Shyam N. Chawda
  • 11. Logical /bitwise AndAlso  Only And?  AndAlso performs logical short-circuiting: if the first operand of the expression is False, the second operand is not evaluated. b = (93 > 67) AndAlso MyFunction() 11Shyam N. Chawda
  • 12. Logical /bitwise OrElse  OR ?  OrElse performs logical short-circuiting: if the first operand of the expression is True, the second operand is not evaluated. 12Shyam N. Chawda
  • 13. Multiple statements in one line ( : ) x = 3 : y = 5 : z = 6 One statement in multiple lines ( _ ) name = "Mr." & " " & "Karna" & _ " " & "Bhavin" & " " & _ ", Trivedi" 13Shyam N. Chawda
  • 14. Comment  Comments are brief explanatory notes added to code for the benefit of those reading it.  Comment ( ) Uncomment ( ) buttons on the Edit toolbar.  REM: 14Shyam N. Chawda
  • 15. Option Explicit  Used at file level to force explicit declaration of all variables in that file.  On (Default) Enables Option Explicit checking.  Off Disables Option Explicit checking. Default - Object type. 15Shyam N. Chawda
  • 16. Option Explicit Option Explicit On Dim MyVar As Integer MyInt = 10 MyVar = 10 16Shyam N. Chawda
  • 17. Option Strict  Restricts implicit data type conversions  On Generate an error  Off (Default) Compiler default is Option Strict Off if do not specify Option Strict in your code. 17Shyam N. Chawda
  • 18. Option Strict Dim MyVar As Integer MyVar = 1000 'Attempting to convert to an Integer generates an error. MyVar = 1234567890.9876542 MsgBox(MyVar) 18Shyam N. Chawda
  • 19. Object data type  Dim objDb As Object  when you do not know at compile time what data type the variable might point to.  Can point to data of any data type, 19Shyam N. Chawda
  • 20. Object data type  Whatever data type it refers to, an Object variable does not contain the data value itself, but rather a pointer to the value.  It always uses four bytes in computer memory, but this does not include the storage for the data representing the value of the variable. 20Shyam N. Chawda
  • 21. Object data type  The Object data type is slower than using explicit data types.  The code that uses the pointer to locate the data, Object variables holding value types are slightly slower to access than explicitly typed variables. 21Shyam N. Chawda
  • 22. IMP functions , constants  vbCrLf Carriage return/linefeed character combination.  vbNewLine Newline character.  vbTab Tab character. 22Shyam N. Chawda
  • 23. IMP functions , constants Space(Integer) InputBox() MsgBox() MessageBox.Show() Val() 23Shyam N. Chawda
  • 24. With…End With  when we want to set number of properties and methods related with one control or object that time use with..end with block.  It executes series of statement related to one control or object 24Shyam N. Chawda
  • 27. With…End With With MyLabel .Height = 200 .Width = 200 .Text = "Demo Label" End With 27Shyam N. Chawda