Hi,
you receive an eight for your single entry because you are adding the length of the returned object to your array. There are different results for this, dependent of what object type is returned by the @DBLookup.
If there is only one entry, the @DBLookup returns a string, which has a length of eight characters. If there are more entries, the @DBLookup returns a vector with a length of two elements for CU2010-1 and three elements for CU2010-3.
Hope this helps
Sven
EDIT:
Just use @Elements(v) instead:
var month_string ="2010-2";
var keys =["CU"+ month_string];
var result = new Array();
var v =null; var i = 0;
for (i = 0; i < keys.length; i++)
{ v =@DbLookup("","raport",keys[i],1);
result.push( @Elements( v ) );
}
result