Forms Collection Doubt
Reply
![]() |
|
From:
![]() Deepu94
|
Hi All,
I am presently converting a project from vb6 to vb.net.i hav a problem regarding the forms collection. i hav given the vb coding and the upgraded vb.net coding.
VB 6 --------- Sub CloseAllRecordsets() Dim i As Integer
While i < Forms.Count If Forms(i).Tag = "Recordset" Then Unload Forms(i) Else i = i + 1 End If Wend
End Sub
After Upgrading to vb.net ----------------------------------
Sub CloseAllRecordsets()
Dim i As Short While i < Forms.Count If Forms(i).Tag = "Recordset" Then Forms(i).Close Else i = i + 1 End If End While End Sub
i am getting errors at Forms(i),i think this is the problem with the forms collection. i hav tried many ways but the error is still there. any help in this regard is highly appretiated.
Thanx In Advance
Deepu
|
|
View other groups in this category.
![]() |
To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.
Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.
If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.
|
|