In reply to sa5691: I paste the code just for reference. if some variable is not declared…it easy to resolve:)