Declaration
Automation:
void  AddData ( [in]   enum SequenceDataType  type, [in]   Variant[]  values) ;
Native (C++):
HRESULT  AddData ( [in]   enum SequenceDataType  type, [in]   VARIANT[]  values) ;
Parameters
type Type of the data to add. Can be one of the following values:
Type Value Description
SequenceDataBytes 0 Treat subsequence method parameters as bytes.
SequenceDataWords 1 Treat subsequent method parameters as words.
SequenceDataDwords 2 Treat subsequent method parameters as double words.
SequenceDataQwords 3 Treat subsequent method parameters as quad words.
SequenceDataFloats 4 Treat subsequent method parameters as floats (single precision floating-point numbers).
SequenceDataDoubles 5 Treat subsequent method parameters as doubles (double precision floating-point numbers).

In addition, the following flags may be combined using the OR operator:

Flag Value Description
SequenceDataLittleEndian 0x00000000 Treat numbers as having little-endian byte order. This option is on by default.
SequenceDataBigEndian 0x00010000 Treat numbers as having big-endian byte order. Meaningless for byte values.
valuesAny number of additional parameters which are added to a sequence. The type parameter describes the way they are interpreted.
Return Value
S_OK or standard OLE error code.
Remarks
Add numeric data to a sequence. This method is used to add bytes, words, double words, quad words, floats and doubles to a sequence. Data is added to the end of the sequence.
Examples

Adding values

JavascriptCopy Code
var fdoc=new ActiveXObject("FileDocument.FileDocument");
var seq=fdoc.CreateSequence();

seq.AddData(SequenceDataBytes, 0x0d, 0x0a); // add two bytes to a sequence
seq.AddData(SequenceDataDwords | SequenceDataBigEndian,
        0x12345678, 0xfedcba98, 0, 70000); // add a number of big-endian double words to a sequence