Einzelnen Beitrag anzeigen

Benutzerbild von haentschman
haentschman

Registriert seit: 24. Okt 2006
Ort: Seifhennersdorf / Sachsen
5.300 Beiträge
 
Delphi 12 Athens
 
#6

AW: Immer noch offener Bug: Umgeben mit ...

  Alt 27. Sep 2014, 07:53
Guten Morgen...

Wie wäre es mit CnPack? ... auch über Kontextmenü verfügbar

Original:
Delphi-Quellcode:
  StartCount:= 0;
  while (not Terminated) and (not (FCurrentRunningState = sdsError)) do
  begin
    CurrentCount:= GetTickCount;
    if (CurrentCount - StartCount) > conPollingInterval then
    begin
      GetAlarms;
      StartCount:= GetTickCount;
    end;
    Sleep(100); // für Leerlauf
  end;
Delphi umgeben:
Delphi-Quellcode:
  {$REGION 'MyRegion'}
    StartCount:= 0;
      while (not Terminated) and (not (FCurrentRunningState = sdsError)) do
      begin
        CurrentCount:= GetTickCount;
        if (CurrentCount - StartCount) > conPollingInterval then
        begin
          GetAlarms;
          StartCount:= GetTickCount;
        end;
        Sleep(100); // für Leerlauf
      end;
  {$ENDREGION}
CnPack umgeben:
Delphi-Quellcode:
{$REGION ''}  
  StartCount:= 0;
  while (not Terminated) and (not (FCurrentRunningState = sdsError)) do
  begin
    CurrentCount:= GetTickCount;
    if (CurrentCount - StartCount) > conPollingInterval then
    begin
      GetAlarms;
      StartCount:= GetTickCount;
    end;
    Sleep(100); // für Leerlauf
  end;
{$ENDREGION}
  Mit Zitat antworten Zitat