Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scan in ADO?
Message
From
21/09/2004 13:27:26
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
 
General information
Forum:
ASP.NET
Category:
ADO.NET
Title:
Miscellaneous
Thread ID:
00943893
Message ID:
00944640
Views:
16
Hi Eric,

>What is the best way to simulate a SCAN or SEEK?
>
>I've been doing this:
>
>foreach ( int i in this.oDS.Tables["mytable"].Rows ) {check logic}

FWIW, this is how the VFP Toolkit for .NET implements SEEK. The toolkit doesn't include SCAN:
public static int Seek(string tcString, System.Data.DataView toView)
{
	int nFound = 0;
	nFound = toView.Find(tcString);

	//If we seek is successful, update the Found flag and return the position
	if(nFound != -1){vfpData._Found = true;}
	return nFound;
}
public static int Seek(string tcString){return Seek(tcString, vfpData.oView);}
Joel Leach
Microsoft Certified Professional
Blog: http://www.joelleach.net
Previous
Reply
Map
View

Click here to load this message in the networking platform