开发者

FindFirst method of VB6 in VB.Net?

开发者 https://www.devze.com 2023-01-23 06:10 出处:网络
Is there any possibility of using something like FindFirst, FindNext, FindLast methods, that we use in VB6?I need to search my database before adding record, if record under current name is already th

Is there any possibility of using something like FindFirst, FindNext, FindLast methods, that we use in VB6? I need to search my database before adding record, if record under current name is already there or not. Say I have a telephone book, I donot want any n开发者_开发问答ame to go again without warning. Thanks Furqan


If you allowed to use LINQ, you may use the method Any(predicate).
http://msdn.microsoft.com/en-us/library/bb534972.aspx

Are you using ADO.NET? The Recordset Object has a Find method:
http://msdn.microsoft.com/en-us/library/ms676117.aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消