GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Web  >  VB Script
Go To First  |  Previous Question  |  Next Question 
 VB Script  |  Question 20 of 21    Print  
How is variables declared in VBScript?

  
Total Answers and Comments: 1 Last Update: July 31, 2007     Asked by: Bessie 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: lata
 

You can declare variables with the Dim, Public or the Private statement. Like this: 

dim name name=some value


Above answer was rated as good by the following members:
rhlasker
July 31, 2007 13:41:04   #1  
lata        

RE: How is variables declared in VBScript?

You can declare variables with the Dim Public or the Private statement. Like this:

dim name name some value

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

Latest Answer : VB Supports: integer, long double, string and boolean data types ...

Latest Answer : Redim statement is used to change the size of Array. ...

Latest Answer : They are different: You dont compile VB scripts like in Visual Basic. You just distribute them as plain text HTML files.The script engine interprets this text into intermediate code when it loads the Web page. It also creates a symbol table so that ...

Latest Answer : Private statement variables are available only to the script in which they are declared.Public statement variables are available to all procedures in all scripts.Variables declared with Dim at the script level are available to all procedures within the ...

Latest Answer : VBScript is supported by Windows 95, Windows NT (including a native version for Alpha), 16-bit Windows, and Unix Solaris. Microsoft is currently working with others to bring VBScript to UNIX versions for HP, Digital, and IBM platforms. ...

Latest Answer : Hi,Using Rem keyword, you can add as many lines of comments as you want.Also single quotes can b e used to add commentsExample:Rem This line is ignoredRem You can also use single quotes to add comment line'Anything ...

Latest Answer : Byte - Integer numbers between 0 to 255 String - Character strings Integer - Large integers between -32,768 and 32,767 Long - Extremely large integers (-2,147,483,648 and 2,147,483,647) Double - Extremely large numbers with decimal points Single ...

Latest Answer : Broadly the array can categorized in 2 different ways.      1. Static Array.      2. Dynamic Array.Static Array can be categorized into       - Single dimension Array.      ...

Latest Answer : If then else and Select case ...

Latest Answer : Mostly Internet Explorer because both are of microsoft.But it also support netscape. ...


 Sponsored Links

 
Related Articles

ODP.NET - Working with Bind Variables together with OracleParameter

ODP NET Working with Bind Variables together with OracleParameter With the help of OracleParameter you can include bind variables within any SQL statement These bind variables are nothing but run time query parameters The values in the SQL statement are bound at run time when we use bind variables m
 

Microsoft AJAX Library - Functions as Variables

Functions as Variables In JavaScript functions are first class objects This means that a function is regarded as a data type whose values can be saved in local variables passed as parameters and so on For example when defining a function you can assign it to a variable and then call the function thr
 

How is the main() function declared?

The declaration of main can be done as int main() One more declaration that can be taken by main is command line arguments form int main(int argc, char *argv[]) or this can also be written as int main(argc, argv) int argc; char *argv[]; NOTE: It is not possible for one to declare the main
 

What happens when a variable is not declared in function definition?

Generally in C program the function definition and calling takes the form as given below: main() { int x,y,z; z=sample(x,y); printf(“%d”,z); } sample(x1,y1) int x1,y1; { int z1; z1= x1 - y1; return(z1); } Here what happens is the values x, y gets passed to x1,y1
 

Swap two variables

How to swap two variables without using third variable? A variable is a named location in memory that is used to store data which can be modified in a program. Let us learn how to swap two variables without using third variable. This can be done in number of ways By using arithmetic operators
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Recording Test Script With WinRunner

How To Use a Wizard to Record a Test Script With WinRunner If you have a script that you want to convert with WinRunner, you can use the DataDriver Wizard to transform the script into a test that is driven by data. For instance, if you want your test script to include things such as checkpoints or v
 

WinRunner Script Design Tips

Scripts play an important role in the function of WinRunner. Those who wish to successful with this program will need to learn how to properly create scripts. In this article, I will provide you with a number of useful tips for script creation. The first tip of script development is to always place
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape