when working with arrays with kix, it is always a good idea to check the ubound() of an array before you call an array index. If you check and see that the Ubound() is less then the index you are about to call, you can then program a workaround so that a error does not happen...


also... some helpful array programming hints...

Code:

;the ubound($string) equals 3
;calling string[4] will cause an error.
$string = "a:b:c:d"
$string = split($string,":")
$var = $string[4]



;but, this does not cause an error...
$string = "a:b:c:d"
$var = split($string,":")[4]





Edited by Bryce (2004-07-14 06:38 PM)