Hallo Jeroen!
Op schreef jij aan All o.a.:
JVDB> I have a comma-separated file. I want to search on a specified field
for
JVDB> a given criteria. I also want to show the results in a dbgrid. (the
grid
JVDB> has to display the found records). I also want to use wildcards (e.g.
JVDB> jero*)
=== Here it starts ===
VAR Selword : String;
Data : Array[0..X] Of Char;
PROCEDURE Search(beginn,endd : integer);
VAR s,m : integer;
BEGIN
s:=beginn;
m:=1;
WHILE s Selword:=','+Selword+',';
example 2: Selword:='Ale*'; thus > Selword:=','+Selword;)
Define your searcharea beginn and endd.
Search(beginn,endd);
In this manner you may treat the tekst in total or in part.
I use this routine for Concordance searches of the Bible.
END.
=== Here it ends - Hakuna matata ===
==> Groeten, Kjell Palmius, (Berkel-Enschot)
--- GoldED 2.50+
---------------
* Origin: Life is going on while we are busy doing other things. (2:285/26)
|