@ Kroni, das funktioniert nicht.
Ich hab hier nochmal den source code wie er immoment aussieht. Da hab ich das Lowercase noch nicht eingefügt. So funktionierts. Aber ich möchte ja auch das ich 'A' eingeben kann und es '1' , nicht nur 'a'. Verbesser bitte mal den Code an den stellen wo ich überall Lowercase einfügen muss und was sonst noch fehlt.
Delphi-Quelltext
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21:
| procedure TFRM_Euro.EDT_Z1KeyUp(Sender: TObject; var Key: Word; Shift: TShiftState); var tmpChar: Char; tmpNr, tmpInt: Byte; begin if EDT_Z1.Text = '' then Exit; tmpChar:= EDT_Z1.Text[1]; if (tmpChar < 'a') or (tmpChar > 'z') then ShowMessage('eingaben nur zwischen a und x erlaubt')
else begin tmpNr:= ord(tmpChar); tmpInt:= tmpNr - 96; LBL_Land.Caption:= IntToStr(tmpInt) end; tmpChar:= EDT_Z1.Text[1]; if(tmpChar < 'a') or (tmpChar > 'z') then EDT_Z1.clear; end; |
Ich kann das programm auch gerne per email verschicken.
Hoffe jetzt das ich es mal langsam kapiere.
Gruß Daniel07A