Hi Christoph_Peus, and Welcome to the board

I am not sure what you are seeing, but with your examples I get:
-1
-1
-1
Results as expected, do you have other code around the AScan(), can you show us your full script that you are working with so that we can better help you.

_________________________
Wait don't order yet,... get KiXforms Designer .NET 2.0 (Beta)
KiXforms Designer .NET 2.0 (Beta)