TIP: Click on subject to list as thread! ANSI
echo: delphi
to: JEROEN VAN DEN BERG
from: KJELL PALMIUS
date: 1997-05-15 21:06:00
subject: ascii search

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.