Alexandre Trevizoli Posted June 7, 2023 Share Posted June 7, 2023 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; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.