TIP: Click on subject to list as thread! ANSI
echo: foxpro
to: RANDALL BOSMA
from: BRIAN COPELAND
date: 1996-11-26 18:46:00
subject: Setting up help in FPD

RB>BC\ In the setup code for your app include the SET HELP TO   \ of your help file>.  I also include a couple of lines to set the
RB>  \ topic to a memvar, At the points in the program were I want to
RB>  \ change the context I just change the contents of the memvar to
RB>  \ match the appropriate record's topic field..
RB>BC\ SET HELP TO 
RB>  \ mhtopic='Main Menu'
RB>  \ SET TOPIC TO m.mhtopic
RB>I understand what's happening here, but why 2 lines of code -
RB>wouldn't SET TOPIC TO 'Main Menu'
RB>acomplish the same thing?
RB>Thanks and greetings our to north-of-the-border friends;     Randy
The SET TOPIC TO m.htopic line only appears once in the app.  After that 
you can just redefine mhtopic.
I usually have screen and procedures that can be called by a number of 
other screen/procedures.  In each module I include the following in the 
setup code and cleanup code.  By using the two memvars I do not have to 
worry about which module called the procedure/screen.
m.oldtopic=m.mhtopic
m.mhtopic=

m.mhtopic=m.oldtopic
Brian.Copeland@encode.com  (Brian Copeland)
--- QScan/PCB v1.17b / 01-0313
---------------
* Origin: Encode Online Orillia,Ont.705-327-7629 (1:252/305)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.