Autor Beitrag
Janoschka
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23



BeitragVerfasst: Mi 21.08.02 13:06 
also in Delphi wird ja ein String, wenn man ihn zuweist mit ' ' eingeschlossen - also so:
ausblenden Quelltext
1:
string:='blablablabla';					

Was ist jetzt, wenn mein String ein ' enthalten soll?
wenn ich so machen will:
ausblenden Quelltext
1:
string:='hier kommt irgendwas und jetzt dieses zeichen ->'<- geht nicht';					

wie kann ich also in der Zeichenkette das einfache "Gänsefüßchen" machen?
patmann2001
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 201

Windows 7 Prof.
Delphi XE2
BeitragVerfasst: Mi 21.08.02 13:14 
Hi
Da geht so:
ausblenden Quelltext
1:
'Dies ist ein Test !'''					

Wie du sehen kannst also einfach zwei '' kurz hinter einander.

cu Patmann
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Mi 21.08.02 13:15 
Ansonsten müsste auch die Chr(AScii-Code von ') gehen.

___________

Ex0rzist
SMI
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 106

Win95-2003 / Debian / Suse
D1/D3/D6/D7
BeitragVerfasst: Fr 23.08.02 00:40 
Ex0rzist hat folgendes geschrieben:
Ansonsten müsste auch die Chr(AScii-Code von ') gehen.


Du meinst #39
also würde das Besipiel folgendemaßen aussehen:
ausblenden Quelltext
1:
 'Dies ist ein Test !'+#39;					


SMI