Hi all,

please have a look at the following code and results (KiXtart 4.53):

$array = "a","b","c"
? ascan($array,"test",,,1)

results in -1 as expected, but

$array = "a","b","c",""
? ascan($array,"test",,,1)

results in 3, which is the empty element of the array which does *not* contain "test"

$array = "a","","b","c"
? ascan($array,"test",,,1)

results in 1, which is again the first empty element in the array.

Looks like a bug to me, or did I get something wrong here?
(The above expamles all yield -1 with mode = 0)

Regards
Christoph