Hi Madri,
So aou have it passing through a FOR loop which is autoindexed, and sometimes runs zero times? In this case, the default value for the data type is often passed on through the loop. This might be a problem.
Hope this helps
Shane.
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)