Solved

Quick conversion of Visual Basic 6 code to Visual Studio 2013 VB.Net code

Posted on 2015-01-17
2
313 Views
Last Modified: 2015-01-18
I'm just doing a quick conversion of an old Visual Basic 6 program to Visual Studio 2013 VB.Net code.

In the Visual Basic 6 Code I have:
  1)  Two Datasets on a Form called Data1 and Data2.
  2)  Two Global Variables referencepath$ and trackpath$.  Referencepath$ = "h:\profiles\refdata" and
schedulesfile$ = "h:\profiles\track".
  3)  VB6 code snippet

   refdatafile$ = referencepath$ & "\profiles.mdb"
   schedulesfile$ = trackpath$ & "\schedules.mdb"
   Data1.DatabaseName = schedulesfile$
   Data1.RecordSource = "schedules"
   Data1.Refresh
   Data2.DatabaseName = refdatafile$
   Data2.RecordSource = "select * from modules"
   Data2.Refresh

How do I do the same thing in Visual Studio 2013 VB.Net code?

Thanks!
0
Comment
Question by:AndrewBanfer
2 Comments
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 40556143
0
 

Author Closing Comment

by:AndrewBanfer
ID: 40556154
Thank you!
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now