WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Functions

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Display Using Fractional Timeout

 Keywords:  Display Fraction Decimal Time Timeout

Question:

How can I get Display() to accept times < 1 second? Perhaps an IntControl can turn this ability on/off?

Answer:

The display() function converts decimal values to the closest integer value.

You can "use" decimal values, but they don't work like you would think...

For Example: 0.1 to 0.9 actually seem to take longer than 1 second. Here is why: the interpreter converts floating point values to the nearest integer value when an integer value is expected and the function substitutes a value of 2 when it receives a value of 0.

So if you pass a value -.3, for example, into the time parameter the interpreter will convert it the the nearest integer, 0 in this case. When the function receives the 0 in converts it to 2. This means that

   Display(-.3,"Whatever", "Whatever")
is equivalent to
   Display(2,"Whatever", "Whatever")
and
   Display(-.9,"Whatever", "Whatever")
is equivalent to
   Display(-1,"Whatever", "Whatever")

Article ID:   W17892
Filename:   Display Using Fractional Timeout.txt
File Created: 2011:02:11:16:18:22
Last Updated: 2011:02:11:16:18:22