Focal Point
[CLOSED] Data Type for & Variables

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/694107263

February 05, 2010, 04:13 PM
nsk110483
[CLOSED] Data Type for & Variables
Hi All,

How to know what data type is passed to the amper variables.

This message has been edited. Last edited by: Kerry,


In Focus since 2008
WebFOCUS 8.2.0.1
Windows 7 - IE,Chrome,Firefox
Excel, PDF, HTML, AHTML, XML
JavaScript, jQuery, D3.js, Highcharts
February 05, 2010, 04:20 PM
Dan Satchell
This link provides lots of info about creating and using ampersand variables.

http://documentation.informati....htm?url=topic44.htm


WebFOCUS 7.7.05
February 07, 2010, 08:06 AM
Danny-SRL
nsk,

As a rule, &variables contain characters.
These characters can be either numbers or alphas.
Dialog Manager will treat any &variable containing an integer (4-byte binary), or a decimal (dbl-precision floating point) as a number. Anything else will be considered an alpha and you can test this with the ".TYPE" postfix function.

See (and run) the following examples:
-SET &A='123';
-TYPE &A.TYPE
-SET &A='ABC';
-TYPE &A.TYPE
-SET &A='1234567890';
-TYPE &A.TYPE
-SET &A='1234567890123';
-TYPE &A.TYPE
-SET &A='12345678.123456789';
-TYPE &A.TYPE
-SET &A='123456789012345.12345';
-TYPE &A.TYPE


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF