Tuesday, February 7, 2012

Multiple Line Syntax in VBScript


If you are a newcomer of VBScript, you must be eager to learn how to write multiple line syntax in VBScript. Here you will learn what code or syntax you should exactly put in to create multiple lines in VBScript. This is required when your codes gets very long that need to be placed in multiple lines.


One good news for you guys is that Microsoft has already integrated a very special character as multiple line syntax or code. And the special character is the underscore sign ‘_’. The example below will show you how to write multiple line syntax of in VBScript using the underscore ‘_’ sign. The following example deals with a long written statement in which you will find that ultiple lines are required to complete the code.


Example of Multiple Line Syntax in VBScript:


document.write("This statement is a very long written " &_

"statement that needs to be positioned in a way that " &_

"the lines can be readable!")


This VBScript code will display the following:


This statement is a very long written statement that requires to be positioned in such a way that the lines can be readable!


If you find this blog helpful, don’t forget to drop a comment.

No comments:

Post a Comment