VBScript Multiple choices


Total available count: 25
Subject - Scripting Languages
Subsubject - VBScript

What is the use of the Len() function in VBScript?


 

 

 

 



D


Solution:-

Len Function
The Len Function returns the length of the given input string including the empty or blank spaces.

Len Function Syntax is as below:
Len(String)Len Function Example is as follows

<!DOCTYPE html>
<html>
 <body>
   <script language = "vbscript" type = "text/vbscript">
    var1 = "SlightBook Website"
    document.write("Length of var1 is : " & Len(var1) & "<br />")

    var2 = "SlightBook Website"
    document.write("Length of var2 is : " & Len(var2) & "<br />")

   </script>
 </body>
</html>

When you save it as .html and execute it in Internet Explorer the browser, then the above script will produce the following output −

Length of var1 is : 18
Length of var2 is : 36




Next 5 multiple choice(s)

1

What is the use of Mid() function in VBScript?

2

What is the use of Spaces() function in VBScript?

3

What is the use of the Trim() function in VBScript?

4

Does Variant data type contain different kinds of information in VBScript?

5

How many data types does VBScript have?

Comments