Friday, December 22, 2006

Overflow

If you ever receive an error message of "Overflow" from an agent you may want to try the following.
Run Debug and find out the line/variable(s) creating the overflow. Chances are you have declared a variable as a variant or integer and are trying to set a number to it that is beyond its limits. Below is a list of value ranges for the different data types. I have pulled this from Designer 7 Help.

Byte
0 to 255 <---values it can hold
Initial value: 0
1 byte
Boolean
0 (False) or -1 (True)
initial value: 0
2 bytes
Integer
-32,768 to 32,767
Initial value: 0
2 bytes
Long
-2,147,483,648 to 2,147,483,647
Initial value: 0
4 bytes
Single
-3.402823E+38 to 3.402823E+38
Initial value: 0
4 bytes
Double
-1.7976931348623158+308 to 1.7976931348623158+308
Initial value: 0
8 bytes
Currency
-922,337,203,685,477.5807 to 922,337,203,685,477.5807
Initial value: 0
8 bytes
String
(String length ranges from 0 to 32K characters)
Initial value: "" (empty string)
(2 bytes/character)

No comments: