开发者

FindFirst method of VB6 in VB.Net?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜