VBS to EXE
Prev Page Prev Page
ExeScript
What Is ExeScript?
Purchasing ExeScript
Registering ExeScript
Interface
Menus
Toolbar
Properties Pane
Resource View Pane
Customizing the Program View
Creating a New Script
Opening an Existing Script
Editing a Script
Saving a Script
Converting/Compiling a Script
Creating an EXE Application
How To
How to Convert Script to Exe
BAT to EXE
VBS to EXE
HTA to EXE
JS to EXE
ExeScript Host
Using ExeScript Host
ExeScript Host Object Model
ExeScript Host Language
Batch Commands
Tips for Writing Batch Files
Batch File Examples
VBS Files
Tips for Writing VBS Files
VBS File Examples
Licensing
Trial Versus Registered
Installing ExeScript
Uninstalling ExeScript
Copyrights

Tips for Writing VBS Files

  1. It is possible to replace the combination of the statements Chr(13) + Chr(10) with the constant vbCrLf.
  2. If you want to display several strings in a MsgBox and each string on a new line, you should insert the constant vbCrLf between these strings:
    MsgBox "123" + vbCrLf + "123" + vbCrLf + "123" + vbCrLf + "123"
    
  3. If code does not fit into one line, you can use the line continuation character:
    if a=1 and b=2 or c=3 then alert a
    
    can be written like this
    if a=1 _
    and b=2 _
    or c=3 _
    then alert a
    
  4. To "glue" two numeric variables, it is better to use the "&" character than "+", i.e.
    a="Hel" b="lo"
    
    then
    a&b="Hello"
    

See also:

VBS File Examples

 

Copyright © ScriptCode.com 2010. All rights reserved.