Autor Beitrag
acnut
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 172
Erhaltene Danke: 3

Windows 7, Windows Vista, Windows XP, Ubuntu, Kubuntu, Pardus
Delphi 2010 SV, Java Editor, VS 2010 SV
BeitragVerfasst: So 31.01.10 17:10 
mach ich hier etwas falsch?
ausblenden Delphi-Quelltext
1:
     adoquery1.sql.text := ('SELECT *  FROM Tabelle1 WHERE Homepage (edit1.text)');					



mfg
FinnO
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: So 31.01.10 17:34 
ausblenden Delphi-Quelltext
1:
'SELECT * FROM Tabelle1 WHERE Homepage = ' + quotedStr(edit1.text);					
acnut Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 172
Erhaltene Danke: 3

Windows 7, Windows Vista, Windows XP, Ubuntu, Kubuntu, Pardus
Delphi 2010 SV, Java Editor, VS 2010 SV
BeitragVerfasst: So 31.01.10 20:27 
gut es funktioniert aber was ist + quotedstr?


mfg
FinnO
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1331
Erhaltene Danke: 123

Mac OSX, Arch
TypeScript (Webstorm), Kotlin, Clojure (IDEA), Golang (VSCode)
BeitragVerfasst: Mo 01.02.10 00:06 
du musst den Wert in Anführungszeichen setzen. Und weil es mit Delphi sonst einen konflikt gäbe (für strings nutzt man die ja auch =)) muss man das ganze halt durch diese Funktion umgehen :P