Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Microsoft Indexing service
Message
De
28/01/2004 13:05:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/01/2004 10:07:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00871376
Message ID:
00871490
Vues:
14
>Can anoyone please tell me how i can do the search by string in a document(all text files - which are in a folder) By Using Microsoft Indexing Service search against the text files which are in a folder in the c drive.
>
>Thank you very much.

You mean something like this ?
qry = CreateObject("ixsso.Query")
utl = CreateObject("ixsso.Util")
utl.AddScopeToQuery(qry,"c:\My Path","deep")
qry.Query = "buchanan near steven and @filename = *.txt"
qry.Catalog = 'System'
Qry.SortBy = "path[a], size[d]"
Qry.Columns = "path, size, write"
Qry.MaxRecords = 300
oRecordset = Qry.CreateRecordSet("nonsequential")
? oRecordset.RecordCount
IF oRecordset.RecordCount > 0
	lcTempXML = SYS(2015)+'.xml'
	oRecordset.Save(lcTempXML,1)
	XMLTOCURSOR(lcTempXML,'FileList',512)
	BROWSE FIELDS path, size, write, mypath = MLINE(path,1)
	return
endif	
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform