Community Sites
Create your own community website and start earning today !
It's Free !
 
Communities Members BookmarksPolls Fresher Jobs Funny Photos B.Tech Projects New Member FAQ  



My Profile
Active Members
TodayLast 7 Days more...



Awards & Gifts
Online Exams

Fresher Jobs


Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi

Resources


Find educational articles, blogs, discussion threads and other resources.

Colleges


Find details about any college in India or search for courses.

website counter



VB script-FAQ


Posted Date: 28 Mar 2008    Resource Type: Articles/Knowledge Sharing    Category: General

Posted By: rajasekhar       Member Level: Gold
Rating:     Points: 5





1.) What is the use of datepart keyword?

Returns the specified part of a given date.

2.) What is the use of step keyword?

Using the Step keyword, you can increase or decrease the counter variable by the value you specify.

3.) Which command is used for writing text on a page?

Document. Write (text)

4.) What is the scope of a variable ?

The scope of a variable defines whether a variable will be accessible in the whole function or will be accessed only to its local instance.I have defined earlier in the tutorials that they can also be deemed as a local variables or can be deemed as a global variables.

For ex.
< script >
Dim name
Sub cmdclickme_OnClick
Dim age
End Sub
< / script >

It is clear from the above example about the scope of the variable that the variable name will be available to the whole script as it is declared outside sub procedure so enhance his behaviour to the global as compared to the variable name age which is defined inside the sub procedure hence making his behaviour local and will be only accessed in this sub procedure only.

5.) How to Add VB script to web pages ?

There are scripting languages like Javascript and Vbscript and they are designed as an extension to html language.The Web browsers like Microsoft Internet Explorer receives the scripts along with the rest of the web page document. It is the browser responsibility to parse and process the scripts. These scripts are widely used as a client side scripting languages.

6.) How to Assign values to a variable ?

How to Assign values to a variable ? Ans: Simple you have to declare a variable name and assign any value.
For ex.
Name = Chandra
Status=False
Age=30
Now all the above variables has been assigned values.This is a simple way to declare and assign related values to a variable.

7.) How do you create a recordset object in VBScript?

First of all declare a variable to hold the Recordset object, ex- Dim objRsNow, Create this varible as a Recordset object, ex- Set objRs=Server.CreateObject(ADODB.RECORDSET)

8.) What is the use of Option Explicit in VBScript?

When you use the Option Explicit statement, you must explicitly declare all variables using the Dim, Private, Public, or ReDim statements. If you attempt to use an undeclared variable name, an error occurs.Use Option Explicit to avoid incorrectly typing the name of an existing variable or to avoid confusion in code where the scope of the variable is not clear.





Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Java Script - Frequently Asked Questions
Previous Resource: XML - Frequently Asked Questions
Return to Discussion Resource Index
Post New Resource
Category: General


Post resources and earn money!
 
Related Resources



Watch TV Channels
  • Watch Asianet TV online
  • Kairali TV in Internet
  • Surya TV online
  • Amritha TV Channel

  • Contact Us    Privacy Policy    Terms Of Use   

    SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.