Prasad Godbole

Prasad Godbole

  • NA
  • 153
  • 171.2k

VB6 code conversion into VB.NET

Aug 22 2012 7:57 AM
Hi ,

We are converting 1 VB6 application into VB.NET and below is some small part of VB6 code.

If Not (rstEditColumns.BOF And rstEditColumns.EOF) Then
        rstEditColumns.MoveFirst
        Do While Not rstEditColumns.EOF
            With grdSingleRecord.Columns
                .Item(rstEditColumns!tablecolumnname).AllowFocus = False
                .Item(rstEditColumns!tablecolumnname).Locked = True
                .Item(rstEditColumns!tablecolumnname).ForeColor = &H80000010
            End With
            rstEditColumns.MoveNext
        Loop
End If



Where 

rstEditColumns  is recordset

grdSingleRecord
is ComponentOne TrueDBGrid control


We want to understand what is the meaning of line rstEditColumns!tablecolumnname in the above code ? So that according to that we will write code for VB.NET.

Please let us know if anyone knows about this.



Thanks and Regards
Prasad



Answers (3)