Solved

Converting TrueGrid 2.1 to TrueDBGrid 5.0

Posted on 1997-12-30
6
228 Views
Last Modified: 2008-02-01
Does anyone know if there is a utility to help convert from TrueGrid 2.1 to TrueDBGrid 5.0? Apex didn't write one, so it looks like it will be a manual process.

I'd be happy with a utility that just placed the new ocx grid in the same location as the vbx grid. It seems like this would have been possible using VB4-16 to load the vbx grids, and then convert them to the newer ocx control.

0
Comment
Question by:jpas
  • 5
6 Comments
 
LVL 8

Accepted Solution

by:
mrmick earned 100 total points
ID: 1448308
You might take a look at writing something to do it yourself, try this, create a new project and add to the new form the 5.0 version of the object, save the form.  Then use notepad to open the form and find the control declaration.  The go into the existing forms with notepad and make the changes involving the old control.

You could write a program to open a form module, scan for the old control, make changes when found and rewrite the module.

0
 
LVL 8

Expert Comment

by:mrmick
ID: 1448309
By the way, control names always follow the "begin" keyword.
0
 
LVL 6

Expert Comment

by:anthonyc
ID: 1448310
Unfortunately, for truegrid, this won't work.  This is usually a good technique, but since the truegrid tool has changed a LOT since version 2.1, it is going to take a lot more work.

Truegrid 2.1 is about 5 versions behind v5.0.  Truegrid 4.0 came with a utility that converted 2.x grid projects to 4.0.  From there, 4.0 -> 5.0 is supposed to be easy (I dont have 5.0, but Apex says it will be easy)
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 8

Expert Comment

by:mrmick
ID: 1448311
anthonyc, this will work, J_Schroeder states "I'd be happy with a utility that just placed the new ocx grid in the same location as the vbx grid.".

J_Schroeder, I think anthonyc's concern is about possible property differences.  Generally, New versions of controls support an older versions properties for compatibility reasons.

Only properties that are different from the control’s default value are stored in the form module.  Properties that are of the default value are not.  The remaining properties are container properties (which is usually most of them) and can be left as is.  You should remove any properties not by the new control that exist in the form module as well.

I'd just do as I suggested the first time, and then load your project.  If a form contains a property that is unsupported, an error will occur and you can review the log created to find out what caused it.  Then you can search for that property and remove it when it exists in your utility.

0
 
LVL 8

Expert Comment

by:mrmick
ID: 1448313
I don't know off hand.  The best thing you can do is create dummy forms.  One for each control.  Draw on one form the old control, and on the other form the new control.  On both, set every property you can think of to a value other than the default value.  Then load them in notepad and you'll be able to see the differences necessary to programmatically make the changes.  It's really not that tuff.

I'd recommend that when you're you have your utility program make a backup copy each form it resolves needs to be changed.  maybe with an "OLD" extension, for example "Form1.OLD".  When your utility starts, it first checks for the OLD version, if it exists, it creates a new "Form1.FRM" from the backup.

0
 
LVL 8

Expert Comment

by:mrmick
ID: 1448315
whoa, I was typing too fast - sorry about the terrible grammar.  If the form exists with the OLD extension, it is the original.

J_Schroeder, if you're going to write a utility to do it, it probably doesn't matter.  If not, I can't see how it would hurt since it may perform some of the tasks for you.  The URL for Apex is:

http://www.apexsc.com
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

758 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

22 Experts available now in Live!

Get 1:1 Help Now