Autor Beitrag
Fienix
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

Win 2K, Win XP Pro, Win 7
D 5 Pro., D 7 Ent., D 2010 Pro.
BeitragVerfasst: Do 20.05.10 13:13 
Hi,

es gibt bestimmt Zeichen die mir Probleme beim Insert oder Update machen. Z.B. das Hochkomma "

Gibt es eine Möglichkeit bestimmte Zeichen bei der Eingabe zu unterdrücken, bei C# gab es da eine Möglichkeit.

MySql 5, ZEOS, Delphi 7

_________________
Wer sichert ist feige!!
bummi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1248
Erhaltene Danke: 187

XP - Server 2008R2
D2 - Delphi XE
BeitragVerfasst: Do 20.05.10 13:15 
OnKeyDown
OnKeyPress

oder meinst Du was anderes
Fienix Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 109

Win 2K, Win XP Pro, Win 7
D 5 Pro., D 7 Ent., D 2010 Pro.
BeitragVerfasst: Do 20.05.10 13:18 
Daran hab ich auch schon gedacht, dann muss ich aber eigene TField Kompos erstellen und anpassen.

Ich dachte es gibt etwas eleganteres.

_________________
Wer sichert ist feige!!
bummi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 1248
Erhaltene Danke: 187

XP - Server 2008R2
D2 - Delphi XE
BeitragVerfasst: Do 20.05.10 13:31 
-- auf dem Feld OnSetText ???

ansonsten OnBeforePost ??
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Do 20.05.10 14:49 
Wenn du die Werte als Parameter an den SQL String übergibst, machen die auch keine Probleme, da solche Zeichen automatisch umgewandelt werden.

_________________
PROGRAMMER: A device for converting coffee into software.
DonManfred
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 148
Erhaltene Danke: 2

Windows 7
Delphi XE3 Pro + HTML5Builder
BeitragVerfasst: Do 20.05.10 15:57 
In meinem Programm können die Mitarbeiter auch Hochkomma verwenden ohne das gleich ein MySQL-Fehler auftaucht...

Ich schmeiss daher mal die Funktion QuotedStr in den Raum.

_________________
Gruss Manfred