Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FPD25 Basic DBF with (maybe parallel) User modifyable fi
Message
From
14/06/2001 10:13:28
David Fluker
NGIT - Centers For Disease Control
Decatur, Georgia, United States
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00518232
Message ID:
00519327
Views:
12
>Thanks I appriciate it any way for replying.

Okay - I'll switch to FoxPro for DOS and give it a go. Here are three ideas...

First idea - I think you can do what you want with the FPD screen designer by using #SECTION 2 of the screen setup code. You can find instructions for using #SECTION1 and #SECTION 2 in the FoxPro help under "Generator Directives" in the top section of the help topics. Basically #SECTION 1 code appears before the windows are defined and #SECTION 2 after the windows are defined. In #SECTION 2 you could check a table for user defined fields and if there are any, use ACTIVATE WINDOW name NOSHOW and @SAY and @GET to prompt for the questions. If there will be many questions you may want to use a listbox to display them with a pop up screen to edit a question when a user double clicks it. Be sure to leave space for these in the screen you design visually.

Second idea - Define a second screen in the screen set, position it behind your main screen. Write code in #SECTION 2 to put the user defined questions on the second screen and add a button to the first screen that bring the second screen to the top. Use the ACTIVATE and DEACTIVATE clauses to control the second screen.

Third idea - Use Ken Levy's GenScrnX to add functionality to the screen builder. It is free, and you can find it on Steven Black's web site with other public domain tools. http://www.stevenblack.com/SBCPublicDomain.asp Most people think of GenScrnX as a FoxPro for Windows tool, but it add alot to FoxPro for DOS as well.

GenScrnX adds a #:SECTION 3 where you can add code after the GETs are defined and before the READ. It also allows youo to put IF THEN / ENDIF around gets on your screen. With these - and other tools in GenScrnX you should be able to incorporate your user defined questions pretty without too much trouble.

You can do amazing things with FoxPro for DOS. I haven't written a DOS app in several years, but I still keep FPD 2.6 just in case.
David.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform