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
Loading
Mahesh ChandPosted Aug 22, 2012, 9:46 AM
VulpesPosted Aug 23, 2012, 4:54 AM
So, if dict represents such a collection, d!key is equivalent to dict("key") or dict.Item("key").
Prasad GodbolePosted Aug 23, 2012, 1:44 AM
Thanks for giving information.
Is there any special meaning for exclamation mark used there?
Thanks and Regards
Prasad