Posted by: tszao | May 1, 2008

I died and went to FoxPro Hell

I am in FoxPro Hell!!!

At my day job, we have a project that was written in FoxPro and eventually bumped up to Visual FoxPro 9. It works. The project actually fires up and still does what it is supposed to do. However, I have been tasked with trying to clean it up. I have never worked with FoxPro before and it is ugly. At least this codebase is ugly. Some things make sense and others do not.

Currently I am trying to figure out how to release a Page Frame tab from a parent class. I get the following error.

“Cannot delete objects because some are members of a parent class”

Frustrating, because I have removed all the code that makes the thing work and I still get this error. If anyone out there has any ideas, I would be eternally grateful.

Responses

Remove it from the PARENT class… You have to go all the way to the top of the heirarchy.

Be prepared for something else to break if you do that, though… The better option is to “hide” the object in question, IMHO…

Check out http://www.hentzenwerke.com for a list of fantastic books on FoxPro…

There is also a very vibrant FoxPro community at both http://universalthread.com and http://www.foxite.com

As long as you are respectful of the language and the programmers who use the language, you will find both of these to be wonderful resources.

Best of luck in your endeavors.

FOXPRO ROCKS!!!!

Kevin Ragsdale

Kevin — thanks for the info and the leads on where to go to get some help. I will certainly check it out tomorrow and see what I can do. Much appreciated!!!!!! — Brian

Hi Brian,

VFP’s object model is simple but powerful. There are only a handful of rules and they’re all consistent. Pages on a Pageframe, Forms in a Formset, Columns in a Grid, and Options in an OptionGroup are examples of some of the more advanced and trickiest to work with because they’re class containers that contain other classes.

Definitely have a look at Kevin’s links. Also, be sure to check out http://fox.wikis.com/ as well.

Tod — Thanks!! Again. I have been struggling for about a week trying to pull this apart and have been banging my head against a wall. The code base is really ugly. How it all works together is pretty straight forward though. I will check out the wiki as well and post any progress that I make. I appreciate some of you FoxPro guys stepping in and providing some guidance. Thanks!!!

hey sorry i don’t know anything about foxpro. good luck with it! how are things ?

[...] the FoxPro Hell post I have managed to gather a few resources that have been very helpful with getting me up and [...]

Leave a response

Your response:

Categories