Autor Beitrag
Killi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Mo 16.06.03 16:37 
Hi!

ausblenden Quelltext
1:
2:
3:
4:
IF-SCHLEIFE: für alle Buchstaben mit doppelpunkt wenn NICHT vorhanden, then
begin
      Webbrowser1.Navigate(Edit1.Text);
end;

Warum tut das nicht? Wenn ich C: eingebe springt er trotzdem auf die Platte......
Die schleife ist in dem Format (ist zu lang zum posten):
Copy(Edit1.Text, 0, 2) <> 'A:') or (Copy(Edit1.Text, 0, 2) <> 'B:') or...
!!!???
Nimloth
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mo 16.06.03 16:55 
Hallo

Hmm if-then ist keine Schleife, if-then ist ein Konstrukt.

In Delphi bzw. Object Pascal beginnen Strings mit 1 nicht mit 0.

Grüsse
ErnestoChe
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 528

Win 2000 pro, CRUX 2.0
Delphi 6 Pers, Open K3
BeitragVerfasst: Mo 16.06.03 17:06 
Hi,

was willst Du denn erreichen? Etwa wenn man C eingibt ohne Doppelpunkt, dass es Dir dann einen Doppelpunkt hinzufügt? Ich versteh nicht ganz, was Du bezweckst.

Ach ja poste doch bitte den kompletten Code der Bedingung, egal ob es zu lang ist.

MFG

- Ernesto -
Nimloth
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Mo 16.06.03 17:11 
Hallo

@Ernesto Ich glaube er will es ausfiltern, also wenn jemand C: eingibt das dann nichts passiert... aber das ist nur ne Spekulation...

Grüsse
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Mo 16.06.03 22:34 
@Nimloth: Genau das wollte ich machen! Und wenn ich von 0 anfange gehts genauso - so hab ichs gelernt, dass Delphi auch mit 0 anfängt....aber trotzdem - wenn ich in diese if-BEDINGUNG schreibe er soll an ein Label was ausgeben (z.Bsp. Laufwerk eingegeben) dann tut ers richtig.......versteh ich nicht! Der Browser läuft immer und kriegt immer n Zugriff auf die Platte! Wie kann ich das am besten ausfiltern?
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Mo 16.06.03 22:39 
OkOk, hatte gestimmt mit dem ab 1 anfangen...so tuts auch!
Was muss ich denn alles beachten damit in der twebbrowser-kompo keiner zugriff auf die platte o.ä. hat???
Nimloth
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Di 17.06.03 08:54 
Hallo

TWebBrowser hat immer zugriff auf die Platte. Warum? Auch der IE hat immer Zugriff auf die Platte (Im IE mal C: eingeben) Und die TWebBrowser ist kein neues WebBrowser Control sondern eine eingekapselte-Delphi Version von dem IE.

Grüsse
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Di 17.06.03 11:39 
wenn mans ihm verbietet dann hat er keinen zugriff mer auf die Platte - das ist der Sinn dieses ganzen hin-und-her-postens...aber jetzt hat er keinen Zugriff mehr!
Nimloth
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Di 17.06.03 11:47 
Hallo

Hmm naja, also der User kann jetzt nicht mehr auf die Platte, aber bösartige Scripts etc. kann das weiterhin...
Aber mich würde interessieren warum du dir die ganze mühe machst...?
Muss das Ding auf einer Mashcine laufen die _nur_ zum surfen gedacht ist? (So auf einer Messe zum Beispiel oder Austellung)?

Hast du daran gedacht auch den Arbeitsplatz bzw. Computer auch auszufiltern? Und die Systemsteuerung bzw. Control Panel?

Grüsse
Killi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 299

Win*
D6 Prof
BeitragVerfasst: Di 17.06.03 14:10 
Ja, wäre für ein Internet-Café-System gedacht.....wie kommt man über die TWebbrowser-Kompo denn bitte auf die Systemsteuerung??? Ich weiß nur davon dass man eben die Laufwerke usw. ansprechen konnte - worauf muss ich noch achten?
Nimloth
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20



BeitragVerfasst: Di 17.06.03 14:30 
Hallo

Hmm hast recht, geht nicht :-( hab mich getäuscht... Aber mit dem IE gehts. Irgendwie finde ich das noch interessant das es mit dem Control nicht geht... Naja...

Grüsse