The module will attempt to identify the error and point out the line in which the error is located.Īs you can see in the picture below, the Interpreter Status shows that I misspelled an external variable.
#Visual basic script tutorials code
Method 2 - Anytime a program is uploaded to a module and the code is run, a message will indicate if the programming is running, finished, or has an issue. This is a command line utility and is available here: BASIC Script Error Check utility Method 1 - A Windows utility has been developed to assist in finding errors in scripts. All three methods may be used to verify that a script will work correctly. Three methods are given to help find errors. Every program may have typos, mistakes, or logic errors. Even two scripts written for the same purpose may be written differently.īefore the programming steps are shown, it is important to show debugging steps. A script written to email every 10 minutes will be very different from a script written to unlock a door during business hours. The script will perform exactly as written.Įvery script is written with a different goal in mind. The point of this simple example is to illustrate that every action and step must be programmed into the script. The computer would continuously repeat the steps of Lather and Rinse. If these instructions are given to a computer, would the computer ever stop washing hair? No, because there is no exit from the cycle 'Lather, Rinse, Repeat'. Think of the standard instructions given on a bottle of shampoo: "Lather, Rinse, Repeat". To begin talking about the functionality of a script, it is helpful to share an example given in many introductory programming classes.
#Visual basic script tutorials manual
Please use this guide along with a ControlByWeb product's users manual and examples to create a script. Also included are a few examples and tricks that more advanced users may find useful to modify for particular applications. This tutorial will assist in creating a custom BASIC script to do advanced logic tasks on ControlByWeb modules. It is written to give more explanations to users who do not have programming experience. This tutorial is not designed to be a comprehensive resource on programming. Please see the X-600M's users manual for more information. The X-600M uses a different language for the coding, called LUA. Most of ControlByWeb advanced modules support BASIC scripts. A script program used on ControlByWeb modules allows for custom logic and capacities beyond regular settings found in the product's web setup pages. The individual ControlByWeb product's users manual will have more details and examples for all supported commands. Many ControlByWeb modules have an interpreter that supports many BASIC commands however, not all BASIC commands are supported. BASIC is a computer programming language that has been in use for many years.