Autor Beitrag
sPeeD2k5
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Sa 13.12.08 20:55 
Hallo Leute.

Ich habe folgendes Problem: Ich möchte einen String der wie folgt aussieht versenden:
'123456'

Jetzt ist mein Problem, wie bekomme ich die Hochkommas in den String? Delphi erkennt die Zeichen ja automatisch als stringanfang und stringende.

Mfg sPeeD2k5
Marc.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 1876
Erhaltene Danke: 129

Win 8.1, Xubuntu 15.10

BeitragVerfasst: Sa 13.12.08 21:00 
So:
ausblenden Delphi-Quelltext
1:
'''123456'''					
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 13.12.08 21:01 
Du musst die einfach mit einem weiteren Hochkomma maskieren:
ausblenden Delphi-Quelltext
1:
a := 'Ein String mit '' <-- Hochkomma';					
;-)
DeddyH
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 13.12.08 21:08 
Da fehlt noch eins ;)
Yogu
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2598
Erhaltene Danke: 156

Ubuntu 13.04, Win 7
C# (VS 2013)
BeitragVerfasst: Sa 13.12.08 21:09 
user profile iconDeddyH hat folgendes geschrieben Zum zitierten Posting springen:
Da fehlt noch eins ;)

Nö.
turboPASCAL
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 193
Erhaltene Danke: 1

Win XP / Vischda
D6 PE / D2005 PE
BeitragVerfasst: Sa 13.12.08 21:24 
user profile iconYogu hat folgendes geschrieben Zum zitierten Posting springen:
user profile iconDeddyH hat folgendes geschrieben Zum zitierten Posting springen:
Da fehlt noch eins ;)

Nö.

Nö, da fehlt kein weiteres.

_________________
Nein, ich bin nicht der turboPASCAL aus der DP, ich seh nur so aus... :P
sPeeD2k5 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 72



BeitragVerfasst: Sa 13.12.08 21:40 
danke geht :)
DeddyH
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 13.12.08 21:41 
Hab ich mal wieder komplett anders verstanden, ich such mir jetzt einen Platz im Altersheim *grmpf*
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19315
Erhaltene Danke: 1747

W11 x64 (Chrome, Edge)
Delphi 11 Pro, Oxygene, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Sa 13.12.08 21:53 
Na dann viel Spaß, brauchst du nen Häkeldeckchen oder so? :mrgreen: :P ;-)