FUNCTION:  Lang.maxInt

Lang.maxInt( )
 
The Lang.maxInt function returns the largest positive integer number recognized by the browser.
 
The companion Lang.minInt function returns the largest negative integer number recognized by the browser.
 
Typical maximum and minimum values are:
 
Max = 2147483647
Min = -2147483647
 
Neither function takes a parameter.
 
Code for MaxIntExample.wml
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.WAPforum.org/DTD/wml_1.1.xml">
<wml>

<card id="card1">
   <p>
   maxInt example
   </p>
   <do type="accept">
      <go href="MaxIntExample.wmls#findmaxint( )" />
   </do>
</card>

<card id="card2">
<p>
   max = $(maxnum)
   <br />
   min = $(minnum)
</p>
</card>

</wml>

 
Code for MaxIntExample.wmls
extern function findmaxint( )
{
   var maxresult = Lang.maxInt(str);
   var minresult = Lang.minInt(str);
   WMLBrowser.setVar("maxnum", maxresult);
   WMLBrowser.setVar("minnum", minresult);
   WMLBrowser.go("MaxIntExample.wml#card2");
};


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information