Solved

Converting TrueGrid 2.1 to TrueDBGrid 5.0

Posted on 1997-12-30
6
255 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
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 
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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…

777 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