When you have an INTEGER column type in a table on your database, you must be aware to script in Powerscript.
The Integer data type in Powerbuilder just have the 16-bit signed characteristic, which mean only can store the integer number between -32768 to +32767. It's totally different with the Integer data type in your SQL database engine. I'm talking about Ms. SQL Server 2000/2005 in this case.
Make sure always using LONG data type in your variable, instead of INTEGER, to prevent the value outside -32768 or +32767.
For example, if the value of the column in your database is 34000, you'll get an error if you store the value into the integer variable on your script.
No comments:
Post a Comment