SlideShare une entreprise Scribd logo
1  sur  94
 
HORIZONTAL SCROLL BAR
CODES
SHOW/HIDE/CHANGE IMAGE
CODES
ADD/REMOVE/CLEAR ITEMS
CODES
CODES
PRELOADING ITEMS
CODES
LIST BOX TO TEXT BOX
CODES
DOUBLE-CLICK TO REMOVE
CODES
CLICK THE REMOVE BUTTON TO DELETE THE ITEMS
CODES
DOUBLE-CLICK TO TRANSFER FROM LIST BOX TO ANOTHER LIST BOX
CODES
DISPLAYING THE ITEMS IN THE LIST BOX AND SHOWING THE DESCRIPTION IN A TEXT BOX
CODES
CODES
THE USE OF COMBO BOX
CODES
CODES
COMBO BOX TO TEXT BOX
CODES
COMBO BOX TO LIST BOX
CODES
USE OF VARIABLES
CODES
CODES
USE OF CONSTANTS
CODES
USE OF VARIABLES - GRADE
CODES
CODES
CODES
CODES
USE OF OPERATORS – GETTING THE DISCOUNT
CODES
CODES
OPERATORS - CALCULATOR
CODES
CODES
CODES
FUNCTIONS
CODES
CODES
CODES
COMMONLY USED FUNCTIONS ,[object Object]
STRING FUNCTIONS ,[object Object],Syntax: Len(string)  Example: Name=“Monica” Result=Len(Name) Output:  6
STRING FUNCTIONS ,[object Object],Syntax: Left(string, length)  Example: Message=“Hello there” Result=Left(Message,5) Output:  Hello
STRING FUNCTIONS ,[object Object],Syntax: Right(string, length)  Example: Message=“Hello there” Result=Right(Message,5) Output:  there
STRING FUNCTIONS ,[object Object],Syntax: Mid(string, starting position,  length)
STRING FUNCTIONS Example: Message=“Patience is a virtue” Result=Mid(Message,15,6) Output:  virtue
STRING FUNCTIONS ,[object Object],Syntax: UCase(string)  Example: Warning=“Wet Floor” Result=UCase(Warning) Output:  WET FLOOR
STRING FUNCTIONS ,[object Object],Syntax: LCase(string)  Example: Warning=“Wet  Floor” Result=LCase(Warning) Output:  wet floor
STRING FUNCTIONS ,[object Object],Syntax: Val(string)  Example: Num = five Result=Val(Num) Output:  5
COMMONLY USED FUNCTIONS 2. Date Functions – commands used to set the date and time.
DATE FUNCTIONS ,[object Object],Syntax: Date()  Example: Dim Cur_Date as String Cur_Date = Date() Output:  07/10/1978
DATE FUNCTIONS ,[object Object],Syntax: Time()  Example: Dim Cur_Time as String Cur_Time = Time() Output:  2:08:34 PM
DATE FUNCTIONS ,[object Object],Syntax: Now()  Example: lbl2.caption = Now() Output: 11/30/2003 8:30:23 PM
DATE FUNCTIONS ,[object Object],Syntax: Format(string,  specified format)
DATE FUNCTIONS Example: Dim Cur_Date as Date lbl2.caption=Format(Cur_Date,  “ yyyy-mm-dd”) Output:  2009-05-14
COMMONLY USED FUNCTIONS 3. Number Functions – used to change looks of a value.
NUMBER FUNCTIONS ,[object Object],Syntax: Format(string,  specified format)
NUMBER FUNCTIONS Example: Dim Result as Single Result = 245.6 lbl2.caption=Format(Result,”0000.00”) lbl2.caption=Format(Result,”$00.00”) Output:  0245.60 $24.60
COMMONLY USED FUNCTIONS 4. Input/Output Functions – commands used for accepting user information.
INPUT/OUTPUT FUNCTIONS ,[object Object],Syntax: variable=InputBox(“Prompt”,Title, Default_text, x-position, y-position)
INPUT/OUTPUT FUNCTIONS Example: Dim Add as String Add=InputBox(“What is your Address?”, Add, ”Type here”, 900, 1000) Output:
INPUT/OUTPUT FUNCTIONS ,[object Object],Syntax: variable=MsgBox(“Prompt”, Style Value, Title)
INPUT/OUTPUT FUNCTIONS Example: Dim Data as String Data=MsgBox(“Password accepted”, 0  ” Accepting”) Output:
Style Value Named Constant 0 vbOK 1 vbOKCancel 2 vbAbortRetryIgnore 3 vbYesNoCancel 4 vbYesNo 5 vbRetryCancel MESSAGE BOX STYLE VALUES
 
CODES ICONS 16 vbCRITICAL 32 vbQUESTION 48 vbEXCLAMATION 64 vbINFORMATION MESSAGE BOX ICONS
DECISION:IF-THEN STRUCTURE
CODES
IF THEN-ELSE  STRUCTURE
CODES
NESTED IF  STRUCTURE
CODES
CASE  STRUCTURE
CODES
CODES
ORDER SEATWORK
CODES
CODES
LOOPS: DO WHILE
CODES
LOOPS: DO UNTIL
CODES
LOOPS: FOR NEXT
CODES
CREATING MENUS USING MENU EDITOR

Contenu connexe

Tendances

4 internet programming
4 internet programming4 internet programming
4 internet programming
soner_kavlak
 
Chapter 4 universal design
Chapter 4 universal designChapter 4 universal design
Chapter 4 universal design
Pado Pado
 
Form Processing In Php
Form Processing In PhpForm Processing In Php
Form Processing In Php
Harit Kothari
 

Tendances (20)

User Interface Design-Module 4 Windows
User Interface Design-Module 4  WindowsUser Interface Design-Module 4  Windows
User Interface Design-Module 4 Windows
 
Shortcut keys
Shortcut keys Shortcut keys
Shortcut keys
 
Assembler
AssemblerAssembler
Assembler
 
Types of grammer - TOC
Types of grammer - TOCTypes of grammer - TOC
Types of grammer - TOC
 
Visual Basic 6.0
Visual Basic 6.0Visual Basic 6.0
Visual Basic 6.0
 
Programming Fundamentals
Programming FundamentalsProgramming Fundamentals
Programming Fundamentals
 
Adobe XD
Adobe XD Adobe XD
Adobe XD
 
User Interface Design- Module 3 Menus
User Interface Design- Module 3 MenusUser Interface Design- Module 3 Menus
User Interface Design- Module 3 Menus
 
4 internet programming
4 internet programming4 internet programming
4 internet programming
 
9 subprograms
9 subprograms9 subprograms
9 subprograms
 
Pseudocode By ZAK
Pseudocode By ZAKPseudocode By ZAK
Pseudocode By ZAK
 
Chapter 4 universal design
Chapter 4 universal designChapter 4 universal design
Chapter 4 universal design
 
Adobe Photoshop: Menu Bar
Adobe Photoshop: Menu BarAdobe Photoshop: Menu Bar
Adobe Photoshop: Menu Bar
 
Google form presentation with full explanation
Google form presentation with full explanationGoogle form presentation with full explanation
Google form presentation with full explanation
 
Form Validation in JavaScript
Form Validation in JavaScriptForm Validation in JavaScript
Form Validation in JavaScript
 
Bootstrap Components Quick Overview
Bootstrap Components Quick OverviewBootstrap Components Quick Overview
Bootstrap Components Quick Overview
 
Form Processing In Php
Form Processing In PhpForm Processing In Php
Form Processing In Php
 
Human Computer Interaction - Facebook Messenger
Human Computer Interaction - Facebook MessengerHuman Computer Interaction - Facebook Messenger
Human Computer Interaction - Facebook Messenger
 
Asp Architecture
Asp ArchitectureAsp Architecture
Asp Architecture
 
Hci final report
Hci final reportHci final report
Hci final report
 

Similaire à Visual Basic Codes And Screen Designs

e computer notes - Single row functions
e computer notes - Single row functionse computer notes - Single row functions
e computer notes - Single row functions
ecomputernotes
 
Using single row functions to customize output
Using single row functions to customize outputUsing single row functions to customize output
Using single row functions to customize output
Syed Zaid Irshad
 
MDI Training DB2 Course
MDI Training DB2 CourseMDI Training DB2 Course
MDI Training DB2 Course
Marcus Davage
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02
wingsrai
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01
tabish
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01
tabish
 

Similaire à Visual Basic Codes And Screen Designs (20)

VB Codes
VB CodesVB Codes
VB Codes
 
Les03
Les03Les03
Les03
 
Les03 (Using Single Row Functions To Customize Output)
Les03 (Using Single Row Functions To Customize Output)Les03 (Using Single Row Functions To Customize Output)
Les03 (Using Single Row Functions To Customize Output)
 
Les03
Les03Les03
Les03
 
e computer notes - Single row functions
e computer notes - Single row functionse computer notes - Single row functions
e computer notes - Single row functions
 
Les03 Single Row Functions in Oracle and SQL.ppt
Les03 Single Row Functions in Oracle and SQL.pptLes03 Single Row Functions in Oracle and SQL.ppt
Les03 Single Row Functions in Oracle and SQL.ppt
 
Les03 Single Row Function
Les03 Single Row FunctionLes03 Single Row Function
Les03 Single Row Function
 
Single row functions
Single row functionsSingle row functions
Single row functions
 
Les03[1] Single-Row Functions
Les03[1] Single-Row FunctionsLes03[1] Single-Row Functions
Les03[1] Single-Row Functions
 
Assembly Language -I
Assembly Language -IAssembly Language -I
Assembly Language -I
 
Using single row functions to customize output
Using single row functions to customize outputUsing single row functions to customize output
Using single row functions to customize output
 
07 sap scripts
07 sap scripts07 sap scripts
07 sap scripts
 
Single-Row Functions in orcale Data base
Single-Row Functions in orcale Data baseSingle-Row Functions in orcale Data base
Single-Row Functions in orcale Data base
 
COIS 420 - Practice 03
COIS 420 - Practice 03COIS 420 - Practice 03
COIS 420 - Practice 03
 
MDI Training DB2 Course
MDI Training DB2 CourseMDI Training DB2 Course
MDI Training DB2 Course
 
ABAP Programming Overview
ABAP Programming OverviewABAP Programming Overview
ABAP Programming Overview
 
Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02Abapprogrammingoverview 090715081305-phpapp02
Abapprogrammingoverview 090715081305-phpapp02
 
Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01Chapter 1abapprogrammingoverview-091205081953-phpapp01
Chapter 1abapprogrammingoverview-091205081953-phpapp01
 
chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01chapter-1abapprogrammingoverview-091205081953-phpapp01
chapter-1abapprogrammingoverview-091205081953-phpapp01
 
Chapter 1 Abap Programming Overview
Chapter 1 Abap Programming OverviewChapter 1 Abap Programming Overview
Chapter 1 Abap Programming Overview
 

Dernier

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Dernier (20)

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 

Visual Basic Codes And Screen Designs