can u give me an example for both the cases.
thanx a lot.