|
PutDouble
|
|
|
The PutDouble method writes double precision (64 bit) floating point number sequence to file and returns number of
elements actually written. File position is moved forward by the number of bytes written.
C++
long PutDouble(
double *DoubleBuffer, // buffer that contains data
long NumberOfElements, // number of elements to write
long FilePosition = -1 // position of data in file
);
BASIC
PutDouble(
DoubleBuffer As Variant, // variant that contains data
NumberOfElements As Long = -1, // number of elements to write
FilePosition As Long = -1 // position of data in file
) As Long
Parameters
- DoubleBuffer
-
C++
Pointer to buffer that contains data.
BASIC
Variant that contains data.
Variant must be of Double data type; it can be either single variable or one-dimensional array.
- NumberOfElements
- Number of elements in data sequence to write.
BASIC
If this parameter is -1 length of sequence is determined by the size of DoubleBuffer.
- FilePosition
- Position in file to write data at.
If this parameter is -1 data is written at current file position.
Return Values
If the method succeeds, the return value is the number of elements actually written.
If the method fails, the return value is failure code and error code is set.
Call GetError to get error code.
Remarks
BASIC
DoubleBuffer can be either single variable of type Double or one-dimensional Double array, depending on
how many elements are to be written. If only one element is written, DoubleBuffer can be a single variable, if more than
one element is to be written it must be a one-dimensional array.
See Also
GetDouble,
PutBit,
PutByte,
PutShort,
PutLong,
PutFloat,
PutText,
PutUnicodeText,
PutVariant,
PutBinary,
Reading and Writing Data