I am using both the below statements to serve my purpose but i don't know which statement is effective and why??
DECLARE ref1 REFERENCE TO OutputRoot.XMLNSC.Order.Summary.CustomerDetails;
Pinned topic Difference between the Two statements Declare and Set
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-03-11T05:27:52Z at 2013-03-11T05:27:52Z by SX14_Rahul_Singh
SX14_Rahul_Singh 270003SX1414 Posts
Re: Difference between the Two statements Declare and Set2013-03-11T05:27:52ZThis is the accepted answer. This is the accepted answer.Hi Vivek,
There is a small difference between declare and set :
SET : Using this statement we are setting a static value to ref1 variable.
DECLARE : Using this statement we are actually creating a pointer in the logical tree. A variable defined using declare can be moved across a logical tree unlike a SET statement which sets a static value.
I hope this makes clear .