Codeblock Onlinehilfe

StatActive()

StatActive() – Statistikprüfung


Die Funktion kontrolliert, ob eine Statistik ausgeführt wird.

Parameter

Beschreibung

aDab420Rec:N

Statistik-Nr.


Rückgabewert


Logisch / Boolean - Statistik wird ausgeführt

Beispiel

| aStat1:N := 1, aStat2:N := 2, aLastTime |

WriteLn('Start von Statistik 1 ...'),
StatExec(aStat1, .F.),
WriteLn('Start von Statistik 2 ...'),
StatExec(aStat2, .F.),

aLastTime := Time(),
while StatActive(aStat1) or StatActive(aStat2) do
   ProcessMsg(),
   if Right(aLastTime, 2) <> Right(Time(), 2) then
      aLastTime := Time(),
      WriteLn(aLastTime),
   endif,
end,


Weitere Verknüpfungen