Thinker

Would you like to react to this message? Create an account in a few clicks or log in to continue.
Thinker

Forum for story


    【常用VB6 TO VB.NET】方法

    Aueeins
    Aueeins
    呢喃的歌声


    帖子数 : 205
    积分 : 5229
    威望 : 0
    注册日期 : 2011-09-08
    地点 : SG

    【常用VB6 TO VB.NET】方法 Empty 【常用VB6 TO VB.NET】方法

    Post by Aueeins 2011-09-30, 4:38 pm

    If .EOF Then
    Call MsgBox("FILTER NOT FOUND!", vbCritical)
    txtsStaffId.SetFocus()
    Else
    DataGrid.SetFocus()
    End If

    True:是结尾,后面没数据
    False:不是结尾,后面有数据

    Recount(Ds) >0 不是结尾,还有数据
    <=0 是结尾,后面没数据

    Ds.EOF -> RowCount(Ds) <= 0
    Ds.EOF = False -> RowCount(Ds) >0

      Current date/time is 2024-11-25, 4:52 pm