GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Web  >  VB Script
Go To First  |  Previous Question  |  
 VB Script  |  Question 21 of 21    Print  
What are the differences between Sub-Procedure and a Function in VBScript?

  
Total Answers and Comments: 1 Last Update: June 06, 2007     Asked by: Bessie 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 22, 2007 19:34:14   #1  
Nimishre Member Since: April 2007   Contribution: 13    

RE: What are the differences between Sub-Procedure and...
The main difference is function returns a value where as a Sub-procedure does not.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : VB script does not support optional keyword. Its not like VB. But dont know why its not provided like in VB. ...
Read Answers (2) | Asked by : aniket

Latest Answer : hi,          VB script supports only one datatype   i.e ) Variantbyvenki chowdary nandipati ...

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 : Hi,In VB script , upto 60 dimensions arrays are allowed... ...

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


 Sponsored Links

 
Related Articles

C++ Pure Virtual Function and Base Class

C Pure Virtual Function and Virtual Base Class In this C tutorial you will learn about pure virtual function declaration of pure virtual function and virtual base class virtual base class and how to implement a virtual base class explained with examples mosgoogle center What is Pure Virtual Function
 

C++ Function Passing Types

C Function Passing Types In this C tutorial you will learn about function passing types two types of arguments passing in functions passed by value  and  passed by reference are discussed here mosgoogle center The arguments passed to a function can be performed in two ways Passed
 

What are the differences between stored procedures and triggers?

Stored procedures are compiled collection of programs or SQL statements that live in the database. A stored procedure can access and modify data present in many tables. Also a stored procedure is not associated with any particular database object. But triggers are event-driven special procedures whi
 

What is DECODE function used for?

DECODE is used to decode a CHAR or VARCHAR2 or NUMBER into any of several different character strings or numbers based on value. That is DECODE does a value-by-value substitution. For every value that is given in the DECODE function it makes an if then check and matches the value. The general format
 

printf() Function Return Value

What is the return value from printf() function? printf function always returns the number of characters printed. Let us understand this with an example: main() { int a=10; printf("%d",printf("%d %d %d", a,a,a)); } In this above program the inner printf i
 

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
 

How does the function call within function get evaluated?

Whenever we have more than one function which is called for a finite number of times then such a function gets evaluated from inside out. Let us understand this concept with an example. For instance consider a function sample called within it 4 times as given in program below: main() { int a=50;
 

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

What is the default return value of a function?

The default return value from a function is int. In other words, unless explicitly specified the default return value by compiler would be integer value from function.   When a programmer wants other than integer values to be returned from function then it is essential that the pro
 

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
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape