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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Displaying all the code?

Status
Not open for further replies.

papollo

Programmer
Oct 19, 2001
71
US
Guys:

I am real new to Paradox.

I have a application created in Paradox 9.

Is there a way of displaying all the code behind the buttons and fields.
Without having to go to each button and field and viewing it.

Thanks in advance ( I am sure I will have many more questions )
 
You might want to look at enumsourcetofile().

However, that code is not editable. It just allows you to look at all the code in one place. You still have to go to each object's events/methods to add or edit the code.

Tony McGuire
 
While editing code, select "View -> Document Source" this will bring up a report with all of the forms code, the report is based on a table in the private dir called PAL$SCR.DB. This table can also be usefully for accessing the code. Paradox Experts also has a Documentation Expert unfortunately not all versions of Paradox have this expert. Not sure about V9, V10 OEM doesn't have it.

Perrin
 
Thanks for the help.

This app. is driving me crazy, I am attempting to find out where the problem is.

I have a few ideas and want to research some things before I ask my question.

Not in to free hand outs on fixing programming problems.

Thanks again
 
Not in to free hand outs"...

Just realize that by stating the general issue, and asking a question or there you may cut your discovery, and recovery, time down dramatically.

I just hope you aren't dealing with an Application Framework created application.



Tony McGuire
 
Be sure and turn on "Compile Warnings" and "Compile with Debug" this can help with giving more informative error messages if the problem is within the code.
 
TonyMcGuire:

I was looking up some info on one of the errors this app is getting.

'The number of menu items exceded the limit set'

There were many mentions of Application Framework in the book.

How do I tell if this app. was created using Application Framework???

My guess is that it was because it was created in a earlier version of paradox and then they upgraded to Paradox 9.

Many Thanks in Advance.
 
Lookup menuSetLimit() by default Paradox sets the limit for popup menus to 32 if I recall correctly, you can raise the limit with menuSetLimit(newMenuLimit). Can't help you with the App Framework question, I'm sure Tony can.

Perrin
 
kliot:

That is what I was thinking with the menuSetLimit command.
Figured that Paradox had some kind of limit for popup menus.

Thanks
 
How to tell if it is an AppFramework generated application?

I don't know.

Generally, I think, AF generates an .exe file to start things off.

And the event model of AF forms are riddled with traps.

But I don't know that there is a specific way to know. I used AF at the beginning to help me understand how it did things; kinda as a Tutorial. But I never used it enough to be able to point to anything that says 'this was generated by AF'.

Wish I could be of more help.

One thing, though. You say the app was built prior to Paradox 8. Not sure, but I think AF started at about version 8. Then was killed in Paradox 10.

Tony McGuire
 
kliot or anyone elae:

I am tring to figure out the best place to put the MenuSetLimit command.

I currently have it in the Open event of the main menu of the App.

The App. works like this:
The user signs on the system and the main menu popsup and the user select a option.
If the user selects return from another menu the App. returns them to the main menu.

So that is why I thought putting the MenuSetLimit command in the Open Event of teh main menu was the best place.

Am I correct?????

Thanks in advance for all the help.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top