Autor Beitrag
MarioL
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

Win XP, Win 7
Delphi 6
BeitragVerfasst: Mo 20.12.04 16:06 
Hallo, wer kann mir Helfen

Wie kann ich in einem Label nach einem bestimmten Wort/Begriff suchen. Das Label wird aus einer Datei ausgelesen (es kann leer sein, nur ein Wort od. mehrere Wörter enthalten). Ist das gesuchte Wort (egal ob Groß- od. Kleinschreibung) enthalten, soll ein Butten Aktiv bzw. Inaktiv sein.

Danke im Voraus, MfG Mario
AXMD
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 4006
Erhaltene Danke: 7

Windows 10 64 bit
C# (Visual Studio 2019 Express)
BeitragVerfasst: Mo 20.12.04 16:09 
ausblenden Delphi-Quelltext
1:
Button1.Enabled := (Pos('Text', Label1.Caption) > 0);					


AXMD
Pille
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 105

Windows 7
DelphiXE Prof.
BeitragVerfasst: Mo 20.12.04 16:12 
Ich denke POS ist was du suchst.

mfg Pille

Edit: zu langsam
MarioL Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 23

Win XP, Win 7
Delphi 6
BeitragVerfasst: Mo 20.12.04 17:09 
Titel: Danke
besten Dank, hatte es mir komplizierter vorgestellt

MfG Mario