is$ g/ ~! _6 v% q/ I7 ~
m,n:integer;
* h7 T, @$ O4 P. y name:string;
2 v* G% u S" u$ x2 j: t5 d obj:object;
1 L; ^) ~' d0 N; M9 B) t- D& vdo
H4 p' c* V+ [ m:=str_to_num(omit(?.name,1,5));8 C" s6 ]& g" k& T. l
name:=sprint("output_line",m); I6 m5 s5 o- d' P" a5 S- g
obj:=str_to_obj(name);
+ H @! w* D4 a5 t4 _* A obj.val:=?.statnumin;
4 D& v1 W4 C1 k' `$ k3 j if m>1 then
7 L( r3 }" x0 l% r# b& R5 Y name:=sprint("outrate_line",m);: R2 i# n% v3 \, s
obj:=str_to_obj(name);
3 @1 x& ?8 B4 Y" t obj.val:=n*100/output_line1;% x3 x9 X2 b. Y1 A( {9 n
end;$ c0 [" f- b e& K+ B% p5 q* F
end;" ?6 ^) C3 U6 n+ Z
我是抄书上的源代码,但是在我的软件上运行错误,提示的是1 i5 @* f- R+ `' r5 ]1 C- k: p
Error in method '.DOE_Sim.SingleLine.CalOutPut' in line 8: 'output_line1' is not a valid path., n/ n# L j8 Z) g! i9 u2 d" m
实在不知道怎么办了,新手求助 |