473,770 Members | 2,781 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Errors after upgrade from vb6 to vb.net

13 New Member
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 1324
kenobewan
4,871 Recognized Expert Specialist
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
4350
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 response file 'U:\WINDOWS\setup.iss' during recording. Please ensure enough space is available on target drive. I got the error 3 times (3 pop-ups).
1
1680
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 know what's going on but still found nothing. I do not know when and where the statements are produced that lead to the error messages. It seems they were generated by postgres internally but I cannot see when and why. How can
3
1865
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 errors - Date, Format and Left give errors. I've registered the missing (or those ocx's) that were indicated as missing- iincluding - mscomct2.ocx - and the date picker showed up but
4
1923
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 NoSuchPage.aspx are routed to error404.aspx. Good. But it seems that requests for any other file extension (*.htm) or requests without a filename (eg www.site.com/nosuchfolder) are routed to the default 404
1
1462
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 2002 gets new compile errors in VS 2003. It appears that there are new scope rules in VB.NET 2003. I get "Name not declared" errors on public functions in public modules. The errors are fixed by wrapping the module in a name space and then...
185
17468
by: Martin Jørgensen | last post by:
Hi, Consider: ------------ char stringinput ..bla. bla. bla. do {
3
1508
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 final executables and DLLS, but it happened. All my C++ Dlls can not be loaded anymore on other machines that my current development machine. I read that I have to upgrade the VC++ DLLs, but what is exactly the DLLS that I need to upgrade on the...
1
1141
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 errors like MyPicture.Line((SubData.Recordset.Fields("Pic_X").Value * 10), SubData.Recordset.Fields("Pic_Y").Value * 10)- (SubData.Recordset.Fields("Pic_X").Value * 10, ))((SubData.Recordset.Fields("Pic_X").Value * 10)) the above syntax...
2
2430
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 to separate interface from implementation in your own code. The external-library symbols will first be defined in one .o file and then again in the next one that includes the same implementation-heavy header. Is there any way to avoid the...
0
9591
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10228
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10002
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8883
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7415
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6676
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5449
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3970
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3575
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.