Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Scan in ADO?
Message
De
21/09/2004 13:27:26
Joel Leach
Memorial Business Systems, Inc.
Tennessie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Titre:
Divers
Thread ID:
00943893
Message ID:
00944640
Vues:
17
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform