Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
ezfit:clarujust:ezfit_optimizer_clarujust_installation [2009/12/23 17:19]
smayr
ezfit:clarujust:ezfit_optimizer_clarujust_installation [2009/12/24 08:47] (current)
smayr
Line 180: Line 180:
 function GetEzfitPath(): string; forward; function GetEzfitPath(): string; forward;
 function GetEzfitVersion(): string; forward; function GetEzfitVersion(): string; forward;
-function NoValidEzFitExists(ValidVer: string): Boolean; forward;+function NoValidEzFitExists(ValidVersion: string): Boolean; forward;
 ... ...
  
Line 247: Line 247:
 begin begin
   result := False;  // A valid ezFIT install exists already   result := False;  // A valid ezFIT install exists already
-  if GetEzfitPath() <> '' then begin+  if (GetEzfitPath() <> ''then begin
      curVer     := StrToInt(copy(GetEzfitVersion(), 1, 4));      curVer     := StrToInt(copy(GetEzfitVersion(), 1, 4));
      validVer   := StrToInt(copy(ValidVersion,      1, 4));      validVer   := StrToInt(copy(ValidVersion,      1, 4));
      curBuild   := StrToInt(copy(GetEzfitVersion(), 5, 10));      curBuild   := StrToInt(copy(GetEzfitVersion(), 5, 10));
      validBuild := StrToInt(copy(ValidVersion,      5, 10));      validBuild := StrToInt(copy(ValidVersion,      5, 10));
-     if (curVer< validVer) or (curBuild< validBuild) then begin+     if ((curVer < validVer) or (curBuild < validBuild)) then begin
        result := True;  // No valid ezFIT install exists        result := True;  // No valid ezFIT install exists
      end;      end;