Code: Select all
var
RegType:array of word;
Procedure init;
begin
RegType:=[ga,ns];
end;
begin
AddToSystemJournal('320 '+inttostr(count(RegType[0])));
end.
04:57:32:306 [_FW]: Compiling
04:57:32:317 [_FW]: Compiled succesfully
04:57:32:334 [_FW]: Out Of Range at 0.233
и собственно на деле то вот так
Code: Select all
for i:=0 to (GetArrayLength(RegType)-1) do
check_reag(RegType[i]);
Code: Select all
procedure check_reag(reg:word);
begin
init;
AddToSystemJournal('251 '+inttostr(reg));
end;
пришлось сделать так.но этот способ конечно хоть и рабочий, но тупой и не универсальный.
Code: Select all
check_reag(ga);
check_reag(ns);