SlideShare a Scribd company logo
1 of 18
Procedures
Events
Built-invb6
Sub procedures, Function Procedures.
2
Sub Procedures
:
[Accessing type] sub procedures name ([Parameter
list])
Statements
End sub
:
Procedure name([Parameter List])
3
Private sub command_click()
Dim x, y, z as integer
X=40
Y=135
Z=90
Max(x,y,z)
End sub
Puplic sub max(a,b,c as integer)
Dim answer as integer
Answer= a
If b >answer then answer=b
If c >answer then answer=c
Print answer
End sub
4
Sub Functions
SubFunction
Function functionName ([arguments]) as type
Function statements
]Return value[
End function
5
'Function Definition
Private Function sum(n1 As Integer, n2 As Integer)
'n1, n2 are parameters
Text1.Text = n1 + n2
End Function
________________________________________
_
Private Sub Form_Load()
Text1.Text = ""
'Function call
Call sum(32, 54) '32 and 54 are arguments
End Sub
6
'Function Definition
Private Function sum(n1 As Integer, n2 As Integer) As Integer
'Returns a value
sum = n1 + n2
End Function
_________________________________________
Private Sub Form_Load()
Text1.Text = ""
'Function calling and assigning the returned value
Text1.Text = sum(60, 40)
End Sub
7
Call By Reference
ByRef
8
Call By Reference
Private Sub Command1_Click ()
Dim Name As String
Name = “Suha Alaaraj”
Call SetName (Name)
MsgBox Name
End Sub
Private Sub SetName (ByRef n AS String)
MsgBox n
n = “Ali”
End Sub
9
Call By Value
ByVal
Visual BasicBy References
10
Call By Value
Private Sub Command1_Click ()
Dim Name As String
Name = “Suha Alaaraj”
Call SetName (Name)
MsgBox Name
End Sub
Private Sub SetName (ByVal n AS String)
MsgBox n
n = “Ali”
End Sub
11
Optional
 Optional
OptionalOptional
Private sub example(x as integer, Optional y as integer)
Call example(12) ‘here x=12 and y=0 by default
Call example(14,35) ‘here x=14 and y=35
Call example(13, ) ‘here x=13 and y=0 by default
5150
12
Mathematical Functions
Abs(12.3235) ' returns 12.3235
Abs(-10.3) ' returns 10.3
Round(29.03914, 2) ‘you will get 29.04
Sqr(9) ' returns 3
Sgn(-214) ' returns -1
Sgn(313.3) ' returns 1
Exp(1) ' returns e (2.71828182845905)
Exp(2) ' returns e to the power of 2 (7.38905609893065)
Int(5.698) ‘ return 5
Fix(5.698) ‘ return 5
Int(-5.6) ‘return -6
fix(-5.6) ‘return -5
13
String Functions
Len (VisualBasic) = 11 and Len (welcome to VB
tutorial) = 22
Right(“Visual Basic”, 4) = asic
 Left (“Visual Basic”, 4) = Visu
Trim (“ Visual Basic ”) = Visual basic
Ucase(“Visual Basic”) =VISUAL BASIC
Lcase(“Visual Basic”) =visual basic
Chr(65)=A, Chr(122)=z, Chr(37)=%
 Asc(“B”)=66, Asc(“&”)=38
14
if for
Private function recfact(n as
integer) as long
If n<=1 then
Recfact=1
Else
Recfact=n * recfact(n-1)
End if
End function
Private function recfact(n
as integer) as long
Dim k as long
K =1
For j=2 to n
K=k*j
Next j
Recfact =k
End function
Recursion
15
Code Modules




AccessibilityBAS
16
add - module1
'Inside the BAS Module1
'Scope is Public to make it accessible from anywhere of the
application
Public Sub show()
MsgBox "Welcome to vb6"
Form1.backcolor=vbyellow
Form1.command1.caption=“hellooo suha”
End Sub
____________________________________
Public Function increment(number As Integer) As Integer
increment = number + 1
End Function
17
Form1
'In form1
Private Sub command1_Click()
Dim num As Integer
num = InputBox("Enter the number", "Input")
MsgBox module1.increment(num)
Module1.show
End Sub
18

More Related Content

What's hot

Gentle Introduction to Functional Programming
Gentle Introduction to Functional ProgrammingGentle Introduction to Functional Programming
Gentle Introduction to Functional ProgrammingSaurabh Singh
 
Excel function
Excel functionExcel function
Excel functionSirajRock
 
Ee 3122 numerical methods and statistics sessional credit
Ee 3122 numerical methods and statistics sessional  creditEe 3122 numerical methods and statistics sessional  credit
Ee 3122 numerical methods and statistics sessional creditRaihan Bin-Mofidul
 
Composition Of Functions
Composition Of FunctionsComposition Of Functions
Composition Of Functionssjwong
 
Introducing maths in qbasic
Introducing maths in qbasicIntroducing maths in qbasic
Introducing maths in qbasicNishan Sharma
 
6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem areadicosmo178
 
Math - Operations on Functions, Kinds of Functions
Math - Operations on Functions, Kinds of FunctionsMath - Operations on Functions, Kinds of Functions
Math - Operations on Functions, Kinds of FunctionsChuckie Balbuena
 
Composite functions
Composite functionsComposite functions
Composite functionsShaun Wilson
 
tensorflow/keras model coding tutorial 勉強会
tensorflow/keras model coding tutorial 勉強会tensorflow/keras model coding tutorial 勉強会
tensorflow/keras model coding tutorial 勉強会RyoyaKatafuchi
 
Operations on Functions
Operations on FunctionsOperations on Functions
Operations on Functionsswartzje
 
Piecewise Functions
Piecewise FunctionsPiecewise Functions
Piecewise Functionsswartzje
 
Function Operations
Function OperationsFunction Operations
Function Operationsswartzje
 
2.4 operations on functions
2.4 operations on functions2.4 operations on functions
2.4 operations on functionshisema01
 
Functions and Relations
Functions and RelationsFunctions and Relations
Functions and RelationsJailah13
 

What's hot (20)

C++ TUTORIAL 10
C++ TUTORIAL 10C++ TUTORIAL 10
C++ TUTORIAL 10
 
Gentle Introduction to Functional Programming
Gentle Introduction to Functional ProgrammingGentle Introduction to Functional Programming
Gentle Introduction to Functional Programming
 
Excel function
Excel functionExcel function
Excel function
 
Piecewise functions
Piecewise functions Piecewise functions
Piecewise functions
 
C++ TUTORIAL 9
C++ TUTORIAL 9C++ TUTORIAL 9
C++ TUTORIAL 9
 
Ee 3122 numerical methods and statistics sessional credit
Ee 3122 numerical methods and statistics sessional  creditEe 3122 numerical methods and statistics sessional  credit
Ee 3122 numerical methods and statistics sessional credit
 
14 recursion
14 recursion14 recursion
14 recursion
 
Composition Of Functions
Composition Of FunctionsComposition Of Functions
Composition Of Functions
 
Introducing maths in qbasic
Introducing maths in qbasicIntroducing maths in qbasic
Introducing maths in qbasic
 
6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area6.1 & 6.4 an overview of the area problem area
6.1 & 6.4 an overview of the area problem area
 
Math - Operations on Functions, Kinds of Functions
Math - Operations on Functions, Kinds of FunctionsMath - Operations on Functions, Kinds of Functions
Math - Operations on Functions, Kinds of Functions
 
Gr10 piecewise functions
Gr10 piecewise functionsGr10 piecewise functions
Gr10 piecewise functions
 
Composite functions
Composite functionsComposite functions
Composite functions
 
tensorflow/keras model coding tutorial 勉強会
tensorflow/keras model coding tutorial 勉強会tensorflow/keras model coding tutorial 勉強会
tensorflow/keras model coding tutorial 勉強会
 
Operations on Functions
Operations on FunctionsOperations on Functions
Operations on Functions
 
Piecewise Functions
Piecewise FunctionsPiecewise Functions
Piecewise Functions
 
Function Operations
Function OperationsFunction Operations
Function Operations
 
2.4 operations on functions
2.4 operations on functions2.4 operations on functions
2.4 operations on functions
 
Functions and Relations
Functions and RelationsFunctions and Relations
Functions and Relations
 
Lesson 3 Operation on Functions
Lesson 3 Operation on FunctionsLesson 3 Operation on Functions
Lesson 3 Operation on Functions
 

Viewers also liked

ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثالث)
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثالث) ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثالث)
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثالث) جامعة القدس المفتوحة
 
ملخص تحليل الانظمة وتصميمها - الوحدة الخامسة
ملخص تحليل الانظمة وتصميمها - الوحدة الخامسةملخص تحليل الانظمة وتصميمها - الوحدة الخامسة
ملخص تحليل الانظمة وتصميمها - الوحدة الخامسةجامعة القدس المفتوحة
 
ملخص تحليل الانظمة وتصميمها - الوحدة الثامنة
ملخص تحليل الانظمة وتصميمها - الوحدة الثامنةملخص تحليل الانظمة وتصميمها - الوحدة الثامنة
ملخص تحليل الانظمة وتصميمها - الوحدة الثامنةجامعة القدس المفتوحة
 
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسةملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسةجامعة القدس المفتوحة
 
ملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسةملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسةجامعة القدس المفتوحة
 
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثالثة
شرح مقرر البرمجة 2   لغة جافا - الوحدة الثالثةشرح مقرر البرمجة 2   لغة جافا - الوحدة الثالثة
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثالثةجامعة القدس المفتوحة
 
بحوث العمليات - اللقاء الافتراضي الثاني
بحوث العمليات - اللقاء الافتراضي الثانيبحوث العمليات - اللقاء الافتراضي الثاني
بحوث العمليات - اللقاء الافتراضي الثانيجامعة القدس المفتوحة
 
ملخص تحليل الانظمة وتصميمها - الوحدة الثالثة
ملخص تحليل الانظمة وتصميمها - الوحدة الثالثةملخص تحليل الانظمة وتصميمها - الوحدة الثالثة
ملخص تحليل الانظمة وتصميمها - الوحدة الثالثةجامعة القدس المفتوحة
 
ملخص الاحصاء التطبيقي - الوحدة الثانية
ملخص الاحصاء التطبيقي - الوحدة الثانيةملخص الاحصاء التطبيقي - الوحدة الثانية
ملخص الاحصاء التطبيقي - الوحدة الثانيةجامعة القدس المفتوحة
 
ملخص الاحصاء التطبيقي - الوحدة الرابعة
ملخص الاحصاء التطبيقي - الوحدة الرابعةملخص الاحصاء التطبيقي - الوحدة الرابعة
ملخص الاحصاء التطبيقي - الوحدة الرابعةجامعة القدس المفتوحة
 
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثانية
شرح مقرر البرمجة 2   لغة جافا - الوحدة الثانيةشرح مقرر البرمجة 2   لغة جافا - الوحدة الثانية
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثانيةجامعة القدس المفتوحة
 
شرح مقرر البرمجة 2 لغة جافا - الوحدة الاولى
شرح مقرر البرمجة 2   لغة جافا - الوحدة الاولىشرح مقرر البرمجة 2   لغة جافا - الوحدة الاولى
شرح مقرر البرمجة 2 لغة جافا - الوحدة الاولىجامعة القدس المفتوحة
 

Viewers also liked (19)

ملخص البرمجة المرئية - الوحدة العاشرة
ملخص البرمجة المرئية - الوحدة العاشرةملخص البرمجة المرئية - الوحدة العاشرة
ملخص البرمجة المرئية - الوحدة العاشرة
 
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثالث)
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثالث) ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثالث)
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثالث)
 
ملخص تحليل الانظمة وتصميمها - الوحدة الخامسة
ملخص تحليل الانظمة وتصميمها - الوحدة الخامسةملخص تحليل الانظمة وتصميمها - الوحدة الخامسة
ملخص تحليل الانظمة وتصميمها - الوحدة الخامسة
 
ملخص تحليل الانظمة وتصميمها - الوحدة الثامنة
ملخص تحليل الانظمة وتصميمها - الوحدة الثامنةملخص تحليل الانظمة وتصميمها - الوحدة الثامنة
ملخص تحليل الانظمة وتصميمها - الوحدة الثامنة
 
ملخص البرمجة المرئية - الوحدة السابعة
ملخص البرمجة المرئية - الوحدة السابعةملخص البرمجة المرئية - الوحدة السابعة
ملخص البرمجة المرئية - الوحدة السابعة
 
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسةملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
 
ملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسةملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسة
 
ملخص البرمجة المرئية - الوحدة الرابعة
ملخص البرمجة المرئية - الوحدة الرابعةملخص البرمجة المرئية - الوحدة الرابعة
ملخص البرمجة المرئية - الوحدة الرابعة
 
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثالثة
شرح مقرر البرمجة 2   لغة جافا - الوحدة الثالثةشرح مقرر البرمجة 2   لغة جافا - الوحدة الثالثة
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثالثة
 
ملخص البرمجة المرئية - الوحدة الثامنة
ملخص البرمجة المرئية - الوحدة الثامنةملخص البرمجة المرئية - الوحدة الثامنة
ملخص البرمجة المرئية - الوحدة الثامنة
 
ملخص 20th century American lit
ملخص 20th century American litملخص 20th century American lit
ملخص 20th century American lit
 
بحوث العمليات - اللقاء الافتراضي الثاني
بحوث العمليات - اللقاء الافتراضي الثانيبحوث العمليات - اللقاء الافتراضي الثاني
بحوث العمليات - اللقاء الافتراضي الثاني
 
ملخص تحليل الانظمة وتصميمها - النصفي
ملخص تحليل الانظمة وتصميمها - النصفيملخص تحليل الانظمة وتصميمها - النصفي
ملخص تحليل الانظمة وتصميمها - النصفي
 
ملخص تحليل الانظمة وتصميمها - الوحدة الثالثة
ملخص تحليل الانظمة وتصميمها - الوحدة الثالثةملخص تحليل الانظمة وتصميمها - الوحدة الثالثة
ملخص تحليل الانظمة وتصميمها - الوحدة الثالثة
 
ملخص البرمجة المرئية - الوحدة الاولى
ملخص البرمجة المرئية - الوحدة الاولىملخص البرمجة المرئية - الوحدة الاولى
ملخص البرمجة المرئية - الوحدة الاولى
 
ملخص الاحصاء التطبيقي - الوحدة الثانية
ملخص الاحصاء التطبيقي - الوحدة الثانيةملخص الاحصاء التطبيقي - الوحدة الثانية
ملخص الاحصاء التطبيقي - الوحدة الثانية
 
ملخص الاحصاء التطبيقي - الوحدة الرابعة
ملخص الاحصاء التطبيقي - الوحدة الرابعةملخص الاحصاء التطبيقي - الوحدة الرابعة
ملخص الاحصاء التطبيقي - الوحدة الرابعة
 
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثانية
شرح مقرر البرمجة 2   لغة جافا - الوحدة الثانيةشرح مقرر البرمجة 2   لغة جافا - الوحدة الثانية
شرح مقرر البرمجة 2 لغة جافا - الوحدة الثانية
 
شرح مقرر البرمجة 2 لغة جافا - الوحدة الاولى
شرح مقرر البرمجة 2   لغة جافا - الوحدة الاولىشرح مقرر البرمجة 2   لغة جافا - الوحدة الاولى
شرح مقرر البرمجة 2 لغة جافا - الوحدة الاولى
 

Similar to ملخص البرمجة المرئية - الوحدة الخامسة

Functions in python
Functions in pythonFunctions in python
Functions in pythonIlian Iliev
 
BUilt in Functions and Simple programs in R.pdf
BUilt in Functions and Simple programs in R.pdfBUilt in Functions and Simple programs in R.pdf
BUilt in Functions and Simple programs in R.pdfkarthikaparthasarath
 
Python High Level Functions_Ch 11.ppt
Python High Level Functions_Ch 11.pptPython High Level Functions_Ch 11.ppt
Python High Level Functions_Ch 11.pptAnishaJ7
 
Monadologie
MonadologieMonadologie
Monadologieleague
 
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]vikram mahendra
 
The Ring programming language version 1.5 book - Part 5 of 31
The Ring programming language version 1.5 book - Part 5 of 31The Ring programming language version 1.5 book - Part 5 of 31
The Ring programming language version 1.5 book - Part 5 of 31Mahmoud Samir Fayed
 
Stdlib functions lesson
Stdlib functions lessonStdlib functions lesson
Stdlib functions lessonteach4uin
 
Intro to Matlab programming
Intro to Matlab programmingIntro to Matlab programming
Intro to Matlab programmingAhmed Moawad
 
Fourier project presentation
Fourier project  presentationFourier project  presentation
Fourier project presentation志璿 楊
 
Sample Exam Questions on Python for revision
Sample Exam Questions on Python for revisionSample Exam Questions on Python for revision
Sample Exam Questions on Python for revisionafsheenfaiq2
 
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
Task4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docxTask4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docx
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docxjosies1
 
R Cheat Sheet for Data Analysts and Statisticians.pdf
R Cheat Sheet for Data Analysts and Statisticians.pdfR Cheat Sheet for Data Analysts and Statisticians.pdf
R Cheat Sheet for Data Analysts and Statisticians.pdfTimothy McBush Hiele
 
Scala Functional Patterns
Scala Functional PatternsScala Functional Patterns
Scala Functional Patternsleague
 
7 Python udf.pptx
7 Python udf.pptx7 Python udf.pptx
7 Python udf.pptxSUJALORAON
 
Functional Programming with Groovy
Functional Programming with GroovyFunctional Programming with Groovy
Functional Programming with GroovyArturo Herrero
 
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Mario Fusco
 
Python programming workshop session 3
Python programming workshop session 3Python programming workshop session 3
Python programming workshop session 3Abdul Haseeb
 
NPTEL QUIZ.docx
NPTEL QUIZ.docxNPTEL QUIZ.docx
NPTEL QUIZ.docxGEETHAR59
 

Similar to ملخص البرمجة المرئية - الوحدة الخامسة (20)

4. functions
4. functions4. functions
4. functions
 
Functions in python
Functions in pythonFunctions in python
Functions in python
 
BUilt in Functions and Simple programs in R.pdf
BUilt in Functions and Simple programs in R.pdfBUilt in Functions and Simple programs in R.pdf
BUilt in Functions and Simple programs in R.pdf
 
Python High Level Functions_Ch 11.ppt
Python High Level Functions_Ch 11.pptPython High Level Functions_Ch 11.ppt
Python High Level Functions_Ch 11.ppt
 
Monadologie
MonadologieMonadologie
Monadologie
 
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
USER DEFINE FUNCTIONS IN PYTHON[WITH PARAMETERS]
 
The Ring programming language version 1.5 book - Part 5 of 31
The Ring programming language version 1.5 book - Part 5 of 31The Ring programming language version 1.5 book - Part 5 of 31
The Ring programming language version 1.5 book - Part 5 of 31
 
Stdlib functions lesson
Stdlib functions lessonStdlib functions lesson
Stdlib functions lesson
 
Intro to Matlab programming
Intro to Matlab programmingIntro to Matlab programming
Intro to Matlab programming
 
Learn Matlab
Learn MatlabLearn Matlab
Learn Matlab
 
Fourier project presentation
Fourier project  presentationFourier project  presentation
Fourier project presentation
 
Sample Exam Questions on Python for revision
Sample Exam Questions on Python for revisionSample Exam Questions on Python for revision
Sample Exam Questions on Python for revision
 
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
Task4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docxTask4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docx
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
 
R Cheat Sheet for Data Analysts and Statisticians.pdf
R Cheat Sheet for Data Analysts and Statisticians.pdfR Cheat Sheet for Data Analysts and Statisticians.pdf
R Cheat Sheet for Data Analysts and Statisticians.pdf
 
Scala Functional Patterns
Scala Functional PatternsScala Functional Patterns
Scala Functional Patterns
 
7 Python udf.pptx
7 Python udf.pptx7 Python udf.pptx
7 Python udf.pptx
 
Functional Programming with Groovy
Functional Programming with GroovyFunctional Programming with Groovy
Functional Programming with Groovy
 
Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...Laziness, trampolines, monoids and other functional amenities: this is not yo...
Laziness, trampolines, monoids and other functional amenities: this is not yo...
 
Python programming workshop session 3
Python programming workshop session 3Python programming workshop session 3
Python programming workshop session 3
 
NPTEL QUIZ.docx
NPTEL QUIZ.docxNPTEL QUIZ.docx
NPTEL QUIZ.docx
 

More from جامعة القدس المفتوحة

كتاب: Simply AVR مقدمة مبسطة عن النظم المدمجة
كتاب: Simply AVR مقدمة مبسطة عن النظم المدمجةكتاب: Simply AVR مقدمة مبسطة عن النظم المدمجة
كتاب: Simply AVR مقدمة مبسطة عن النظم المدمجةجامعة القدس المفتوحة
 
ملخص تحليل الانظمة وتصميمها - الوحدة السادسة
ملخص تحليل الانظمة وتصميمها - الوحدة السادسةملخص تحليل الانظمة وتصميمها - الوحدة السادسة
ملخص تحليل الانظمة وتصميمها - الوحدة السادسةجامعة القدس المفتوحة
 
ملخص تحليل الانظمة وتصميمها - الوحدة السابعة
ملخص تحليل الانظمة وتصميمها - الوحدة السابعةملخص تحليل الانظمة وتصميمها - الوحدة السابعة
ملخص تحليل الانظمة وتصميمها - الوحدة السابعةجامعة القدس المفتوحة
 
ملخص تحليل الانظمة وتصميمها - الوحدة الرابعة
ملخص تحليل الانظمة وتصميمها - الوحدة الرابعةملخص تحليل الانظمة وتصميمها - الوحدة الرابعة
ملخص تحليل الانظمة وتصميمها - الوحدة الرابعةجامعة القدس المفتوحة
 
ملخص تحليل الانظمة وتصميمها - الوحدة التاسعة
ملخص تحليل الانظمة وتصميمها - الوحدة التاسعةملخص تحليل الانظمة وتصميمها - الوحدة التاسعة
ملخص تحليل الانظمة وتصميمها - الوحدة التاسعةجامعة القدس المفتوحة
 
ملخص تحليل الانظمة وتصميمها - الوحدة الثانية
ملخص تحليل الانظمة وتصميمها - الوحدة الثانيةملخص تحليل الانظمة وتصميمها - الوحدة الثانية
ملخص تحليل الانظمة وتصميمها - الوحدة الثانيةجامعة القدس المفتوحة
 
ملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسةملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسةجامعة القدس المفتوحة
 
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسةملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسةجامعة القدس المفتوحة
 
اسئلة نهائية لمقرر تقنية تصميم صفحات الويب - 1266
اسئلة نهائية لمقرر تقنية تصميم صفحات الويب - 1266اسئلة نهائية لمقرر تقنية تصميم صفحات الويب - 1266
اسئلة نهائية لمقرر تقنية تصميم صفحات الويب - 1266جامعة القدس المفتوحة
 
مناهج البحث العلمي - اللقاء الافتراضي الثاني
مناهج البحث العلمي - اللقاء الافتراضي الثانيمناهج البحث العلمي - اللقاء الافتراضي الثاني
مناهج البحث العلمي - اللقاء الافتراضي الثانيجامعة القدس المفتوحة
 
مناهج البحث العلمي - اللقاء الافتراضي الاول
مناهج البحث العلمي - اللقاء الافتراضي الاولمناهج البحث العلمي - اللقاء الافتراضي الاول
مناهج البحث العلمي - اللقاء الافتراضي الاولجامعة القدس المفتوحة
 
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسةملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسةجامعة القدس المفتوحة
 
ملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسةملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسةجامعة القدس المفتوحة
 
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعة
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعةملخص تقنية تصميم صفحات الويب - الوحدة الرابعة
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعةجامعة القدس المفتوحة
 
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثني)
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثني) ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثني)
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثني) جامعة القدس المفتوحة
 

More from جامعة القدس المفتوحة (20)

كتاب ميكروبيديا Micropedia
كتاب ميكروبيديا Micropediaكتاب ميكروبيديا Micropedia
كتاب ميكروبيديا Micropedia
 
كتاب: Simply AVR مقدمة مبسطة عن النظم المدمجة
كتاب: Simply AVR مقدمة مبسطة عن النظم المدمجةكتاب: Simply AVR مقدمة مبسطة عن النظم المدمجة
كتاب: Simply AVR مقدمة مبسطة عن النظم المدمجة
 
ملخص تحليل الانظمة وتصميمها - الوحدة السادسة
ملخص تحليل الانظمة وتصميمها - الوحدة السادسةملخص تحليل الانظمة وتصميمها - الوحدة السادسة
ملخص تحليل الانظمة وتصميمها - الوحدة السادسة
 
ملخص تحليل الانظمة وتصميمها - الوحدة السابعة
ملخص تحليل الانظمة وتصميمها - الوحدة السابعةملخص تحليل الانظمة وتصميمها - الوحدة السابعة
ملخص تحليل الانظمة وتصميمها - الوحدة السابعة
 
ملخص تحليل الانظمة وتصميمها - الوحدة الرابعة
ملخص تحليل الانظمة وتصميمها - الوحدة الرابعةملخص تحليل الانظمة وتصميمها - الوحدة الرابعة
ملخص تحليل الانظمة وتصميمها - الوحدة الرابعة
 
ملخص تحليل الانظمة وتصميمها - الوحدة التاسعة
ملخص تحليل الانظمة وتصميمها - الوحدة التاسعةملخص تحليل الانظمة وتصميمها - الوحدة التاسعة
ملخص تحليل الانظمة وتصميمها - الوحدة التاسعة
 
ملخص تحليل الانظمة وتصميمها - الوحدة الثانية
ملخص تحليل الانظمة وتصميمها - الوحدة الثانيةملخص تحليل الانظمة وتصميمها - الوحدة الثانية
ملخص تحليل الانظمة وتصميمها - الوحدة الثانية
 
ملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسةملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسة
 
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسةملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
 
اسئلة نهائية لمقرر تقنية تصميم صفحات الويب - 1266
اسئلة نهائية لمقرر تقنية تصميم صفحات الويب - 1266اسئلة نهائية لمقرر تقنية تصميم صفحات الويب - 1266
اسئلة نهائية لمقرر تقنية تصميم صفحات الويب - 1266
 
مناهج البحث العلمي - اللقاء الافتراضي الثاني
مناهج البحث العلمي - اللقاء الافتراضي الثانيمناهج البحث العلمي - اللقاء الافتراضي الثاني
مناهج البحث العلمي - اللقاء الافتراضي الثاني
 
مناهج البحث العلمي - شرح الوحدات 1-5
مناهج البحث العلمي - شرح الوحدات 1-5مناهج البحث العلمي - شرح الوحدات 1-5
مناهج البحث العلمي - شرح الوحدات 1-5
 
ملخص مناهج البحث العلمي كامل
ملخص مناهج البحث العلمي كاململخص مناهج البحث العلمي كامل
ملخص مناهج البحث العلمي كامل
 
ملخص مناهج البحث العلمي
ملخص مناهج البحث العلميملخص مناهج البحث العلمي
ملخص مناهج البحث العلمي
 
مناهج البحث العلمي - اللقاء الافتراضي الاول
مناهج البحث العلمي - اللقاء الافتراضي الاولمناهج البحث العلمي - اللقاء الافتراضي الاول
مناهج البحث العلمي - اللقاء الافتراضي الاول
 
ملخص تعايش مع التكنولوجيا
ملخص تعايش مع التكنولوجياملخص تعايش مع التكنولوجيا
ملخص تعايش مع التكنولوجيا
 
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسةملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
ملخص تقنية تصميم صفحات الويب - الوحدة الخامسة
 
ملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسةملخص تقنية تصميم صفحات الويب - الوحدة السادسة
ملخص تقنية تصميم صفحات الويب - الوحدة السادسة
 
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعة
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعةملخص تقنية تصميم صفحات الويب - الوحدة الرابعة
ملخص تقنية تصميم صفحات الويب - الوحدة الرابعة
 
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثني)
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثني) ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثني)
ملخص تقنية تصميم صفحات الويب - الوحدة الثالثة (الجزء الثني)
 

Recently uploaded

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
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...pradhanghanshyam7136
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...Nguyen Thanh Tu Collection
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
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.pptxheathfieldcps1
 
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 FellowsMebane Rash
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 

Recently uploaded (20)

SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
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...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
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
 
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
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 

ملخص البرمجة المرئية - الوحدة الخامسة

  • 1.
  • 3. Sub Procedures : [Accessing type] sub procedures name ([Parameter list]) Statements End sub : Procedure name([Parameter List]) 3
  • 4. Private sub command_click() Dim x, y, z as integer X=40 Y=135 Z=90 Max(x,y,z) End sub Puplic sub max(a,b,c as integer) Dim answer as integer Answer= a If b >answer then answer=b If c >answer then answer=c Print answer End sub 4
  • 5. Sub Functions SubFunction Function functionName ([arguments]) as type Function statements ]Return value[ End function 5
  • 6. 'Function Definition Private Function sum(n1 As Integer, n2 As Integer) 'n1, n2 are parameters Text1.Text = n1 + n2 End Function ________________________________________ _ Private Sub Form_Load() Text1.Text = "" 'Function call Call sum(32, 54) '32 and 54 are arguments End Sub 6
  • 7. 'Function Definition Private Function sum(n1 As Integer, n2 As Integer) As Integer 'Returns a value sum = n1 + n2 End Function _________________________________________ Private Sub Form_Load() Text1.Text = "" 'Function calling and assigning the returned value Text1.Text = sum(60, 40) End Sub 7
  • 9. Call By Reference Private Sub Command1_Click () Dim Name As String Name = “Suha Alaaraj” Call SetName (Name) MsgBox Name End Sub Private Sub SetName (ByRef n AS String) MsgBox n n = “Ali” End Sub 9
  • 10. Call By Value ByVal Visual BasicBy References 10
  • 11. Call By Value Private Sub Command1_Click () Dim Name As String Name = “Suha Alaaraj” Call SetName (Name) MsgBox Name End Sub Private Sub SetName (ByVal n AS String) MsgBox n n = “Ali” End Sub 11
  • 12. Optional  Optional OptionalOptional Private sub example(x as integer, Optional y as integer) Call example(12) ‘here x=12 and y=0 by default Call example(14,35) ‘here x=14 and y=35 Call example(13, ) ‘here x=13 and y=0 by default 5150 12
  • 13. Mathematical Functions Abs(12.3235) ' returns 12.3235 Abs(-10.3) ' returns 10.3 Round(29.03914, 2) ‘you will get 29.04 Sqr(9) ' returns 3 Sgn(-214) ' returns -1 Sgn(313.3) ' returns 1 Exp(1) ' returns e (2.71828182845905) Exp(2) ' returns e to the power of 2 (7.38905609893065) Int(5.698) ‘ return 5 Fix(5.698) ‘ return 5 Int(-5.6) ‘return -6 fix(-5.6) ‘return -5 13
  • 14. String Functions Len (VisualBasic) = 11 and Len (welcome to VB tutorial) = 22 Right(“Visual Basic”, 4) = asic  Left (“Visual Basic”, 4) = Visu Trim (“ Visual Basic ”) = Visual basic Ucase(“Visual Basic”) =VISUAL BASIC Lcase(“Visual Basic”) =visual basic Chr(65)=A, Chr(122)=z, Chr(37)=%  Asc(“B”)=66, Asc(“&”)=38 14
  • 15. if for Private function recfact(n as integer) as long If n<=1 then Recfact=1 Else Recfact=n * recfact(n-1) End if End function Private function recfact(n as integer) as long Dim k as long K =1 For j=2 to n K=k*j Next j Recfact =k End function Recursion 15
  • 17. add - module1 'Inside the BAS Module1 'Scope is Public to make it accessible from anywhere of the application Public Sub show() MsgBox "Welcome to vb6" Form1.backcolor=vbyellow Form1.command1.caption=“hellooo suha” End Sub ____________________________________ Public Function increment(number As Integer) As Integer increment = number + 1 End Function 17
  • 18. Form1 'In form1 Private Sub command1_Click() Dim num As Integer num = InputBox("Enter the number", "Input") MsgBox module1.increment(num) Module1.show End Sub 18