Thank you Toofuzzy and Clive for your examples. Now I have two ways for doing the same thing. This is very useful. Vitali