ClassesClassesClassesClasses | | | | Operators

tuple_gen_sequencetuple_gen_sequenceTupleGenSequencetuple_gen_sequenceTupleGenSequenceTupleGenSequence (Operator)


tuple_gen_sequencetuple_gen_sequenceTupleGenSequencetuple_gen_sequenceTupleGenSequenceTupleGenSequence — Generate a tuple with a sequence of equidistant values.


tuple_gen_sequence( : : Start, End, Step : Sequence)

Herror tuple_gen_sequence(const Hlong Start, const Hlong End, const Hlong Step, Hlong* Sequence)

Herror T_tuple_gen_sequence(const Htuple Start, const Htuple End, const Htuple Step, Htuple* Sequence)

Herror tuple_gen_sequence(const HTuple& Start, const HTuple& End, const HTuple& Step, Hlong* Sequence)

Herror tuple_gen_sequence(const HTuple& Start, const HTuple& End, const HTuple& Step, HTuple* Sequence)

void TupleGenSequence(const HTuple& Start, const HTuple& End, const HTuple& Step, HTuple* Sequence)

static HTuple HTuple::TupleGenSequence(const HTuple& Start, const HTuple& End, const HTuple& Step)

void HOperatorSetX.TupleGenSequence(
[in] VARIANT Start, [in] VARIANT End, [in] VARIANT Step, [out] VARIANT* Sequence)

VARIANT HTupleX.TupleGenSequence(
[in] VARIANT Start, [in] VARIANT End, [in] VARIANT Step)

static void HOperatorSet.TupleGenSequence(HTuple start, HTuple end, HTuple step, out HTuple sequence)

static HTuple HTuple.TupleGenSequence(HTuple start, HTuple end, HTuple step)


tuple_gen_sequencetuple_gen_sequenceTupleGenSequencetuple_gen_sequenceTupleGenSequenceTupleGenSequence generates a new tuple SequenceSequenceSequenceSequenceSequencesequence with a sequence of equidistant values:

[Start, Start + Step, Start + 2*Step, ... End]

StepStepStepStepStepstep must not be zero and the sign of (EndEndEndEndEndend - StartStartStartStartStartstart) must be equal to the sign of StepStepStepStepStepstep. The last entry of SequenceSequenceSequenceSequenceSequencesequence may actually be less than EndEndEndEndEndend, if (EndEndEndEndEndend - StartStartStartStartStartstart) is not divisible by StepStepStepStepStepstep without remainder.

Exception: Empty input tuples

If any of the input tuples is empty, an exception is raised.

HDevelop In-line Operation

HDevelop provides an in-line operation for tuple_gen_sequencetuple_gen_sequenceTupleGenSequencetuple_gen_sequenceTupleGenSequenceTupleGenSequence, which can be used in an expression in the following syntax:

Sequence := [Start:Step:End]

An alternative syntax is Sequence := [Start:End], where StepStepStepStepStepstep defaults to 1.



StartStartStartStartStartstart (input_control)  number HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Start value of the tuple.

EndEndEndEndEndend (input_control)  number HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

Maximum value for the last entry.

StepStepStepStepStepstep (input_control)  number HTupleHTupleHTupleVARIANTHtuple (integer / real / string) (int / long / double / string) (Hlong / double / HString) (Hlong / double / char*) (Hlong / double / BSTR) (Hlong / double / char*)

Increment value.

SequenceSequenceSequenceSequenceSequencesequence (output_control)  number(-array) HTupleHTupleHTupleVARIANTHtuple (integer / real) (int / long / double) (Hlong / double) (Hlong / double) (Hlong / double) (Hlong / double)

The resulting sequence.


tuple_str_bit_selecttuple_str_bit_selectTupleStrBitSelecttuple_str_bit_selectTupleStrBitSelectTupleStrBitSelect, tuple_selecttuple_selectTupleSelecttuple_selectTupleSelectTupleSelect, tuple_str_first_ntuple_str_first_nTupleStrFirstNtuple_str_first_nTupleStrFirstNTupleStrFirstN, tuple_str_last_ntuple_str_last_nTupleStrLastNtuple_str_last_nTupleStrLastNTupleStrLastN, tuple_concattuple_concatTupleConcattuple_concatTupleConcatTupleConcat, tuple_inserttuple_insertTupleInserttuple_insertTupleInsertTupleInsert, tuple_replacetuple_replaceTupleReplacetuple_replaceTupleReplaceTupleReplace, tuple_gen_consttuple_gen_constTupleGenConsttuple_gen_constTupleGenConstTupleGenConst

See also




ClassesClassesClassesClasses | | | | Operators