Ive got this warning :Variable 'drRate' is used before it has been assigned a value. A null reference exception could result at runtime.
What exactly is the problem here?....and how do i solve it?
Expand|Select|Wrap|Line Numbers
- Public Sub mnuStdRateList_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles mnuStdRateList.Click
- Dim drRate As Object
- Dim drVRate As Object
- Dim strTitle As Object
- 'UPGRADE_WARNING: Couldn't resolve default property of object strTitle. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
- strTitle = "List of Standard Rate as at " & Now
- 'UPGRADE_WARNING: Couldn't resolve default property of object drVRate.Title. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
- 'UPGRADE_WARNING: Couldn't resolve default property of object strTitle. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
- drVRate.Title = strTitle
- deWVA.rscmdVRate.Properties.Refresh()
- 'UPGRADE_WARNING: Couldn't resolve default property of object drRate.Show. Click for more: 'ms-help://MS.VSCC.v80/dv_commoner/local/redirect.htm?keyword="6A50421D-15FE-4896-8A1B-2EC21E9037B2"'
- drRate.Show(1)
Can anyone help me?
Many thanks