The [integer] method returns an integer, the value of which depends on the parameter(s) passed to the method. It has the following variants:
Integer(Value)
local(result = integer(Value))
Values retrieved from an HTML form or URL using [Action_Param] are always of data type string. It is necessary to cast these values to integer if they will be used in a mathematical expression using symbols.
The following example adds the values for two [Action_Param] methods using the math symbol +.
Code
integer(action_param('Price')) + integer(action_param('Shipping'))
Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.
©LassoSoft Inc 2015 | Web Development by Treefrog Inc | Privacy | Legal terms and Shipping | Contact LassoSoft
Recent Comments