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 ChandRank #1 · 393.3K reputationPosted Aug 22, 2012, 5:46 AM EDT
Prasad Godbole153 reputationPosted Aug 22, 2012, 9:44 PM EDT
Thanks for giving information.
Is there any special meaning for exclamation mark used there?
Thanks and Regards
Prasad
VulpesRank #55 · 29.2K reputationPosted Aug 23, 2012, 12:54 AM EDT
So, if dict represents such a collection, d!key is equivalent to dict("key") or dict.Item("key").