Hi,

I am getting exception "incompatible types" while i am running the below code. Can you please let me know where i am doing wrong in the code?

Thanks in advance

Code:
-------------------