Solved

Converting TrueGrid 2.1 to TrueDBGrid 5.0

Posted on 1997-12-30
6
244 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

863 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

25 Experts available now in Live!

Get 1:1 Help Now