is
% H& ~+ q. V- o8 h9 N4 `# b m,n:integer;& l: x- h$ z. q& L
name:string;
6 w: V9 o# E' V5 V1 Y, k obj:object;3 h4 K. |7 a4 J! n
do! p, u1 k: N' D
m:=str_to_num(omit(?.name,1,5));* x$ L7 @4 z/ Y% t8 q1 F4 E: a
name:=sprint("output_line",m);
( Y1 K( k* i' y: F, ^$ J" Z obj:=str_to_obj(name);
) s2 J$ y. [+ ? obj.val:=?.statnumin;" }3 f J( X$ i! s6 I/ D
if m>1 then
. r: P) ?6 b- t1 F7 D name:=sprint("outrate_line",m);
. p7 f/ s: ?* M3 R" i4 n6 n obj:=str_to_obj(name);
/ Q0 \* M, @2 ]1 ?+ L% H obj.val:=n*100/output_line1;: f) h. X& T9 e- s5 K7 e6 t& [- O2 c- S
end;4 b2 L& S8 U( P+ T
end;3 u% q0 e! q, s% U8 X) [
我是抄书上的源代码,但是在我的软件上运行错误,提示的是
0 G* W$ \. h3 l, g9 G5 w4 MError in method '.DOE_Sim.SingleLine.CalOutPut' in line 8: 'output_line1' is not a valid path.: m% `7 C6 h) c! @0 l& ~. @, Q
实在不知道怎么办了,新手求助 |