WebPoint Scripting Language  
home


back  Back to Home Page

Delphi Data Types
◊ Integer
◊ Double
◊ String
◊ Char
◊ Currency
 
Custom Data Types
◊ TDateTime
 
back Back to Home Page

WebPoint - Data Types

Back To DataTypes 
Like many modern coding languages, WebPoint provides a rich variety of ways of storing data. These include session variables, page parameter values and ips script data types. The following section looks at ips data types, and how to define and use them.

To begin with its important to know where they can be used! ips data types can only be used in ips scripts which simply are text files with a '.ips' extension. Information on how a ips script is formated can be found HERE or alternativly under documentation on the home page on the page labeled 'scripts'.

A list of simple data types is available from the menu to the left, but before you have a browse through those we'll have a quick look at how to define a variable in WebPoint. The following code sample is an example of a variable declaration.

Code Sample
var
LineTotal : Integer;
First,Second : String;
// This starts a section of variables
// This defines an Integer variable called LineTotal
// This defines two variables to hold strings of text

You will be able to see later exactly where this var section fits into your ips scripts but for now notice that the variable definitions are indented - this makes the code easier to read - indicating that they are part of the var block.

Each variable starts with the name you choose, followed by a : and then the data type. As with most WebPoint statements, a ; terminates the line. As you can see, you can define multiple variables in one line if they are of the same type by seperating the variable names with a , and then declaring the data type.

It is very important that the name you choose for each variable is unique, otherwise WebPoint will not know how to identify which you are referring to. It must also be different from the WebPoint language keywords. You'll know when you have got it right when WebPoint compiles your code OK and dosn't produce any errors.

WebPoint is not sensitive about the case (lower or upper) of your variable names. It treats theCAT the same as TheCat so be carfull when naming your variables.


back  Back To Home Page

© Copyright 2008 Intouch Technology Group
->