导航

Assign Shape中的代码顺序问题

Posted on 2007-04-10 11:18  鸡尾虾的壳  阅读(157)  评论(1编辑  收藏  举报
 原则:上下文属性访问语句必须出现在消息构造语句后。否则出现访问未构造消息属性的错误。
MyMessage.PartA = something;
MyMessage(SomeContextProeprty) = someValue;
MyMessage.PartB = somethingElse;
Error!

MyMessage.PartA = something;
MyMessage.PartB = somethingElse;
MyMessage(SomeContextProeprty) = someValue;

OK!

Original: yossidahan blog "Order of operations in an assign shape"