Autor Beitrag
alexschultze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 317



BeitragVerfasst: Fr 25.10.02 23:05 
hi ;)

sagt mal, gibt in Delphi überhaupt Wildcards?
sowas wie
if string1='alexan'+*

?

alex
AndyB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1173
Erhaltene Danke: 14


RAD Studio XE2
BeitragVerfasst: Fr 25.10.02 23:19 
Ein klares Nein.

_________________
Ist Zeit wirklich Geld?
alexschultze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 317



BeitragVerfasst: Fr 25.10.02 23:36 
gibts es eine Möglichkeit sowas zu machen?
Eine Art Umgehung?
Oder eher Strings auf das vorhanden sein in anderen Strings prüfen als letzte Variante...
Popov
Gast
Erhaltene Danke: 1



BeitragVerfasst: Sa 26.10.02 01:54 
ausblenden Quelltext
1:
if Pos('alexan', string1) = 1 then ...					


Ungetestet. Müßte aber gehen.
MathiasSimmack
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Sa 26.10.02 08:23 
Eine andere Möglichkeit (inkl. Wildcards) wäre die Unit "Masks" mit der Funktion "MatchesMask":
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
uses
  Masks;

{ ... }

if(MatchesMask('http://www.auq.de','http://*.*')) then
  ShowMessage('gültige URL');

usw.
alexschultze Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 317



BeitragVerfasst: Sa 26.10.02 11:22 
dieses mask ist sehr interessant.

danke!

alex