Autor Beitrag
coolace
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 141



BeitragVerfasst: Di 18.11.08 21:51 
hy,

ich will einen String spliten der so aufgebaut ist DC=contoso\ou=other\cn=hans.
Wenn ich als Trennzeichen variable.split('\') angeben dann kommt als Fehlermeldung
zu viele Zeichen im Zeichenliteral und Zeilenvorschub in Konstante.

Muss ich dieses Zeichen irgendwie kaskadieren oder umwandeln oder durch was anderes ersetzen
um \ als Trennezeichen anzugeben.

Gruß

Coolace
Greenberet
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 339
Erhaltene Danke: 20

Win 10
C# (VS 2012), C++ (VS 2012/GCC), PAWN(Notepad++), Java(NetBeans)
BeitragVerfasst: Di 18.11.08 22:35 
mach mal variable.split('\\')

;)
coolace Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 141



BeitragVerfasst: Di 18.11.08 22:52 
vielen dank, genau das hat geholfen.
echt der hammer :-)

Gruß

Coolace