473,320 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Errors after upgrade from vb6 to vb.net

13
Hi, im currently doing an upgrade from vb6 to vb.net. After using the upgrade wizard, this is what i got:

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
  1. Public Sub mnuStdRateList_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles mnuStdRateList.Click
  2.     Dim drRate As Object
  3.     Dim drVRate As Object
  4.     Dim strTitle As Object
  5.     '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"'
  6.     strTitle = "List of Standard Rate as at " & Now
  7.     '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"'
  8.     '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"'
  9.     drVRate.Title = strTitle
  10.     deWVA.rscmdVRate.Properties.Refresh()
  11.     '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"'
  12.     drRate.Show(1)
End Sub

Can anyone help me?

Many thanks
Mar 2 '07 #1
1 1300
kenobewan
4,871 Expert 4TB
Does drRate have a value? I suggest that you write the value as part of your debugging.
Mar 2 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dave | last post by:
I am having problems accessing DTS after install SP4 and was wondering if someone could offer some advice. I installed SP4 and got the following error after it competed. Unable to write to...
1
by: Dirk Försterling | last post by:
Hi, sorry for reposting, but it seems my message just hit nothing but air. If I posted to the wrong list or did something else wrong with the message, please let me know. I really want to...
3
by: arthur-e | last post by:
A new Machine was set up by our IS department - it came with Office Pro 2003. Access97, Word97 and Excel 97 were added. I'm trying to update an Access 97database to 2003 but get weird compiling...
4
by: Jon Spivey | last post by:
Hi, I've set up a custom error like this <customErrors mode="On" defaultRedirect="ErrorPage.aspx"> <error statusCode="404" redirect="error404.aspx" /> </customErrors> So requests for...
1
by: Ray Wampler | last post by:
According to the information on the Microsoft web site, code written in VB.NET 2002 can simply be recompiled using VS.NET 2003. However, I have found that code which compiles cleanly in VS.Net...
185
by: Martin Jřrgensen | last post by:
Hi, Consider: ------------ char stringinput ..bla. bla. bla. do {
3
by: cpasmwalolo | last post by:
Hello thezre, I recently installed the SP1 of visual studio, just before releasing a new version of my application. And I never though that this SP1 could change something fondamental in the...
1
by: kabrizier | last post by:
Hi i am extremely new to this and i have been given a task to upgrade vb6 code to vb.net.Is it necessary to change data connections to the datasets and bindings in .net . Also there are just a lot of...
2
by: Markus Dehmann | last post by:
What to do if an external library is header-files-only (but you have to use it), and you get lots of linker errors? You will necessarily get linker errors "multiple definition of ..." if you try...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.