Have a program using the following type of code If: Then: dim who(6);who["6"]="Cancel" This array is then filled in the form NNNN name If: Then: sl(1,.0)=listbox(who) If: Then: 3=mid(who[sl],"1","4");ab=mid(who[sl],"6","30") Why am I getting a syntax error that points to [sl]? Richard Kreiss GCC Consulting rkreiss at gccconsulting.net