Solved

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

Posted on 2015-01-17
2
330 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 70

Accepted Solution

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

Author Closing Comment

by:AndrewBanfer
ID: 40556154
Thank you!
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

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

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

739 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