标题: 发生器的创建触发中依次设置临时实体类型和颜色,设置颜色,创建和初始化标签出错 [打印本页] 作者: zorsite 时间: 2012-12-3 14:05 标题: 发生器的创建触发中依次设置临时实体类型和颜色,设置颜色,创建和初始化标签出错 本帖最后由 zorsite 于 2012-12-4 08:54 编辑 % J; |' N8 i$ H. x- M$ }2 z8 U- r( Z+ ?% K; y; S6 y H( K
版本为Flexsim6.02中文版( ~. e; C7 @8 y3 [( P" E
具体操作见GIF附件。 . N; S) ~# H0 ]& p[attach]1003[/attach]: Y- a$ B. U% X( g) q/ T9 s
% V" y3 K7 K x
编译器控制台出错提示: 8 T9 p/ P3 t3 g6 ~) z. t6 jFlexscript Error MAIN:/project/model/发生器3>variables/creationtrigger line 30 syntax error, unexpected '}', expecting end of code check for the proper number of parentheses/braces ) l/ z* V( m- l5 t5 z0 [5 c& E2 iCould not finish parsing because of previous errors.1 Q7 f$ d0 ^+ N) T5 Q
0 A. i9 V2 F; ?* O$ _1 M; w' w" Q/ d/ k+ p0 X% z
系统控制台出错提示: 4 U2 s9 {" f: s3 J, G' A) v! ^exception: parse error at line number 31: syntax error, unexpected '}', expecting end of code& W- A; |( X* X& m
exception: parse error at line number 31: syntax error, unexpected '}', expecting end of code & X7 Z7 X: \$ ?) ?6 _& L }2 f5 w6 J5 q# S0 o! S+ M0 j3 k- F+ a1 a0 K
系统生成的代码:
treenode item = parnode(1); 1 y1 H/ l2 `8 K5 \
treenode current = ownerobject(c); . t# l! k( _5 N' Y' A
int rownumber = parval(2); //row number of the schedule/sequence table/ D6 L( Y* I" g/ \9 l. q( B6 @