Jump to content

Delphi 2007 - Unigui 1.90.0.1568 - Build Error - Urgent!


Recommended Posts

Hello!

How can I solve this error on Build?

Seems like procedure AdjustTr is not complete....

 

 

function TUniBaseEdit.AdjustCase(AValue: TCaption): string;

  procedure AdjustTr(var Value: TCaption; ACase: TEditCharCase);
  var
    I : Integer;
  begin
    for I := 1 to Length(Value) do
      case ACase of
        ecUpperCase:
          begin
            if Value[I] = 'i' then
              Value[I] := 'İ'
            else if Value[I] = 'ı' then
              Value[I] := 'I';
          end;

        ecLowerCase:
          begin
           //
          end;
      end;
  end;

var
  Handled : Boolean;

begin
  if Assigned(FOnCharCaseConversion) then
  begin
    Handled := False;
    FOnCharCaseConversion(Self, AValue, FCharCase, Handled);
    if Handled then
    begin
      Result := AValue;
      Exit;
    end;
  end;

  if FCharCase = ecUpperCase then
  begin
    if FCharCaseConversion = uccTurkish then
      AdjustTr(AValue, ecUpperCase);
    Result := AnsiUpperCase(AValue);
  end
  else if FCharCase = ecLowerCase then
  begin
    if FCharCaseConversion = uccTurkish then
      AdjustTr(AValue, ecLowerCase);
    Result := AnsiLowerCase(AValue);
  end
  else
    Result := AValue;
end;

 

UNIGUI-ERROR.PNG

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...