Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Object Browser: View Class Code... USELESS!

Status
Not open for further replies.

CouponPages

Programmer
Feb 17, 2003
37
US
As a long time xBase developer, I must admit... I hate visual programming. I love the look, but I hate the output for one reason... it's not CODE, and I love to work with good old fashioned code.

Visual tools save some time, but I find I lose more time in hunting around the properties editor and looking for things like hidden attributes and all sorts of embedded things like datasessions, etc... For what it's worth, code is a lot easier for my old-school mind to work with. I can print it, browse through it, share it with people and even dictate it over the phone.

So, when I found out that the class browser allows us to load forms and click a simple "View Class Code" button to view the "Code" I was thrilled!... until I found out that the code it generates is USELESS!

Why do they bother with it? The code it produces cannot be run if it has any pageframes or a number of other common elements.

Does anyone know of another alternative to generating real honest to goodness code from forms or classes? It seems simple enough to write one... and if I find out there are none, I'll write one. I just bugs me that they include one, and it doesn't work.

While I'm on the subject, the late Tom Rettig once wrote a converter that could actually write class files from hard code (but it was for the older versions). Does anyone know of a newer version?
 
HI

Have you used this..

Collection of all methods and Events code in Forms
faq184-2948

In fact I have built a tool, which can read all the methods behind the objects, then edit anything I want and then save them back. Unfortunately that is a protected utility. I cant share it here. But it is possible to rollout your own tool. Time spent for these will pay out in time to come.

:)

ramani :)
(Subramanian.G),FoxAcc, ramani_g@yahoo.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top