[jawsscripts] Re: How do you define a constant containing a negative number?

  • From: "Sina Bahram" <sbahram@xxxxxxxxx>
  • To: <jawsscripts@xxxxxxxxxxxxx>
  • Date: Mon, 15 Feb 2010 12:52:50 -0500

You can store 0xffffffff as the const's value, instead of -1. That's just the 
32-bit value representing -1 in 2's complement binary
notation.

This is a fault of the JawsScript parser though.

Take care,
Sina

-----Original Message-----
From: jawsscripts-bounce@xxxxxxxxxxxxx 
[mailto:jawsscripts-bounce@xxxxxxxxxxxxx] On Behalf Of Mike O'Brien
Sent: Monday, February 15, 2010 12:36 PM
To: JawsScript
Subject: [jawsscripts] How do you define a constant containing a negative 
number?

In a script file , I want to define the following constant.

Const
        iStartingLevel=-1

But When I compile it in JAWS 10 and 11, I get the message "The word Const must 
be followed by a constant definition."  If I put the
Minus 1 in quotes, it compiles but changes the constant to a string instead of 
an int so it can't be used as a number.  The FSDN and
Basics of Scripting didn't shed any light.

Thanks for the help.

Mike\

__________
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts


__________ 
Visit and contribute to The JAWS Script Repository http://jawsscripts.com

View the list's information and change your settings at 
//www.freelists.org/list/jawsscripts

Other related posts: