Regarding the vector problem, is this a bug?

code

result = "test"
set v1 = dopus.create.Vector(1,2,3)
set v2 = dopus.create.Vector(4,5,6)
for each v in v1
	result = v & vbnewline & result & vbnewline
next
dopus.output "=========="
dopus.output result
dopus.output "=========="

output

==========
3
2
1
test



==========

Shouldn't the result be like this?

==========
1
test

2
test

3
test

==========

No, that's a bug in your code, not ours. :slight_smile:

Can you help me point out where the error is?

start: result = "test"
v = 1: result = "1" + result = "1 test"
v = 2: result = "2" + result = "2 1 test"
v = 3: result = "3" + result = "3 2 1 test"

This would produce the desired output

Function OnClick(ByRef clickData)

result = "test"
set v1 = dopus.create.Vector(1,2,3)
set v2 = dopus.create.Vector(4,5,6)

dopus.output "=========="

for each v in v1
	dopus.output v & vbnewline & result & vbnewline
next

dopus.output "=========="

End Function