VBscript Part 2 - Variables

preview_player
Показать описание
In this video we covered

Agenda Part 2

1. What is a variable?
2. What are the rules for variables?
3. Variable Declaration Types?

1A. Variable is a named memory location which holds a value
Eg: Dim value

2A. i) Variable must begin with an alphabet
Eg: Dim salary .... NOT(123salary)
ii) Variable cannot exceed 255 characters
Eg : Dim salary
iii) Variable should not contain (.)
Eg : Dim salary.123

3A. i) Implicit Declaration : Here variables are used without declaration.
Eg: val = 2.. msgbox val
ii) Explicit Declartion : Declaraing variables Explicitly is called Explicit Declaration.
Eg: Dim value ... value = 4 ..... msgbox value
a) Option Explicit : It makes vbscript to forcefully declare a variable

#YouTube #YouTuber #AzharTechnoCoder
Рекомендации по теме
Комментарии
Автор

What will happen if I declare the variable without giving opinion explicit... will it work or will give an error

subhadiptasinghsamant
join shbcf.ru