Topics

03 Troubleshooting
Designer
Backend call Database.getSize returns negatives values

With LotusScript and Java backend classes programming, as your database size grows beyond 2 GB, calling Database.getSize() returns an increasingly lower negative double number. To convert this negative double to the correct positive double that reflects the size of the database, take the absolute value of the negative double returned from Database.getSize() (subtract the returned value from 0 to change its sign), and then add 2^31 (2 GB) to that absolute value.