Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
1916 connectés 

  FORUM HardWare.fr
  Programmation
  Delphi/Pascal

  fonction FindText ds RichEdit : syntaxe ?

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

fonction FindText ds RichEdit : syntaxe ?

n°1861677
HERIBERT
Posté le 15-03-2009 à 08:33:31  profilanswer
 

Bonjour à tous :)
 
Ce code me pose pb :  
 
procedure Chercher;
var
        Retour : LongInt;
        StartPos, ToEnd : integer;
        Struct_Recherche : TSearchTypeS;
 
begin
 
        StartPos := 0;
        ToEnd := Length(Form1.RichEdit1.Text);
        Retour := Form1.RichEdit1.FindText(Chn_Cherchee, StartPos,ToEnd, Struct_Recherche);
        // etc...
       
 
Je cherche une chaîne ds un RichEdit, et je ne veux pas tenir compte de la casse. Donc, il me faut la fonction FindText, et mettre l'option stMatchCase comme il faut pour Struct_Recherche .  
 
Comment initialiser les options de Struct_Recherche :??:  
 
Cette syntaxe ne fonctionne pas : Struct_Recherche.StMatchCase := quelque chose . Le compilo semble ne pas reconnaître que Struct_Recherche est un record :??:
 
Merci :hello:


Message édité par HERIBERT le 15-03-2009 à 08:34:39
mood
Publicité
Posté le 15-03-2009 à 08:33:31  profilanswer
 


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Programmation
  Delphi/Pascal

  fonction FindText ds RichEdit : syntaxe ?

 

Sujets relatifs
Probleme parametre de fonction javascript[Résolu] Fonction retournant un tableau allouer dynamiquement
Utiliser une variable dans une fonction range.valueProblème fonction opendir
Fonction de saisieAdaGide: syntaxe couleur et caractères
Creer mail en fonction du nom et prenom ADAppel de fonction
fonction statistique [VBA] [Help]fonction file exist
Plus de sujets relatifs à : fonction FindText ds RichEdit : syntaxe ?


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR