Autor Beitrag
chrizz_15
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: Fr 26.08.05 16:02 
Hallo liebe Programmierer,

ich habe eine Frage bezüglich der WebBrowser-Komponente. Mit folgendem Befehl rufe ich meine gewünschte Seite auf:
ausblenden Quelltext
1:
  WebBrowser1.Navigate('http://[...].de');					


Funktioniert prinzipiell einwandfrei, aber meine Url übersteigt den Rahmen von 255 Zeichen. Da meckert Delphi 7 zurecht rum: String-Literale können maximal 255 Elemente besitzen

Hat jemand eine Lösung für das Problem?

Vielen Dank im Voraus
Lannes
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 2352
Erhaltene Danke: 4

Win XP, 95, 3.11, IE6
D3 Prof, D4 Standard, D2005 PE, TurboDelphi, Lazarus, D2010
BeitragVerfasst: Fr 26.08.05 16:10 
Hallo,

so
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
//...
var s : String;
//...
s := 'lllllllllllllllaaaaaaaaaaannnnngggggggggggggg'+13#10
     'nnnnnnnnnnnooooooooooccccccccccchhhhhhhhhh...mehr'
WebBrowser1.Navigate(s);

_________________
MfG Lannes
(Nichts ist nicht Nichts) and ('' <> nil ) and (Pointer('') = nil ) and (@('') <> nil )
Blackheart666
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2195

XP
D3Prof, D6Pers.
BeitragVerfasst: Fr 26.08.05 16:12 
String mit + verbinden Bsp.

ausblenden Delphi-Quelltext
1:
Label1.Caption:='String255'+'String255';					


Zuletzt bearbeitet von Blackheart666 am Fr 26.08.05 16:26, insgesamt 1-mal bearbeitet
chrizz_15 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 37



BeitragVerfasst: Fr 26.08.05 16:20 
Danke Blackheart666! Habe es so gemacht, wie du gesagt hast. Funktioniert super!