Bookshelf Home | Contents | Index | PDF |
Siebel eScript Language Reference > Siebel eScript Commands > Buffer Object Methods > putValue() MethodThis method puts the specified value into a buffer at the current file cursor position. SyntaxbufferVar.putValue(value[, valueSize][, valueType ])
UsageThis method puts a specific value into a buffer. Acceptable values for valueSize are 1, 2, 3, 4, 8, and 10, providing that this value does not conflict with the optional valueType flag. Combined with valueSize, any type of data can be put into a buffer. The following list describes the acceptable combinations of valueSize and valueType: Any other combination causes an error. The value is put into the buffer at the current cursor position, and the cursor value is automatically incremented by the size of the value to reflect this addition. To explicitly put a value at a specific location while preserving the cursor location, add code similar to the following: var oldCursor = bufferItem.cursor; // Save the cursor location The value is put into the buffer with byte-ordering according to the current setting of the bigEndian flag. Note that when putting float values as a smaller size, such as 4, some significant figures are lost. A value such as bufferItem.putValue(1.4,8,"float"); This situation can be prevented by using 8 as a valueSize instead of 4. A valueSize of 4 may still be used for floating-point values, but be aware that some loss of significant figures may occur, although it may not be enough to affect most calculations. See Also |
Siebel eScript Language Reference |