Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Microsoft Indexing service
Message
From
28/01/2004 13:05:47
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
28/01/2004 10:07:22
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00871376
Message ID:
00871490
Views:
15
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform