Reduces the size of the blob to the number of characters identified in length. This method truncates the contents of the blob, starting from the rightmost position until the contents fit the new size. The truncate() method releases memory.
truncate(int length);
Parameter |
Description |
---|---|
length |
Number of characters to reduce the size of the blob. |
Integer. Returns the new blob size, if successful, and 0, if failed.
blob myblob;
myblob = “abcdefg123456”;
myblob.truncate(7);
Pointer to object |
Object |
---|---|
|
|
|
|
|
|
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |