* --- This procedure builds the online Help file if one is not present
PROCEDURE domemo
PRIVATE mftemp
mftemp = SYS(3)+'.DBF'
COPY TO &mftemp STRUCTURE EXTENDED
USE (mftemp) EXCLUSIVE
ZAP
APPEND BLANK
REPLACE field_name WITH 'TOPIC',field_type WITH 'Character',field_len WITH 30
APPEND BLANK
REPLACE field_name WITH 'DETAILS',field_type WITH 'Memo',field_len WITH 10
USE
CREATE {fileprefix}_help.dbf FROM &mftemp
DELETE FILE (mftemp)
USE {fileprefix}_help
mhelpno = 23
DIMENSION hlp_text[mhelpno,2]
hlp_text[1,1] = ' <<< FILE MENU >>> '
hlp_text[1,2] = 'The File menu contains Help, Database, and Quit options. For more information on these options, choose the appropriate topic in this Help facility.'
hlp_text[2,1] = ' - Help'
hlp_text[2,2] = 'Choosing Help displays the Help window with a list of available help topics. Choose a topic to see more information on that topic.'
hlp_text[3,1] = ' - Database'
hlp_text[3,2] = 'This option is enabled when you have more than one database open. When you choose the Database... option a list of open databases is displayed. Select the database you wish to make active.'
hlp_text[4,1] = ' - Quit '
hlp_text[4,2] = 'Exit this program. '
hlp_text[5,1] = ' <<< GO MENU >>>'
hlp_text[5,2] = 'The Go menu contains Seek, Goto, Locate, Continue, Next, Prior, Top and Bottom options. For more information on one of these options, choose the appropriate topic in this Help facility.'
hlp_text[6,1] = ' - Seek'
hlp_text[6,2] = 'Seek is enabled when an index is active. This option searches the database for a record that matches the expression you create.'
hlp_text[7,1] = ' - Goto'
hlp_text[7,2] = 'When you choose Goto..., a dialog appears so you can move the record pointer to the top or bottom of the active database or to a specific record number.'
hlp_text[8,1] = ' - Locate'
hlp_text[8,2] = 'The database will be searched for a record that matches the expression you create in the expression builder. The expression must be logical, and the database need not be indexed.'
hlp_text[9,1] = ' - Continue'
hlp_text[9,2] = 'If a Locate is successful, the Continue option will be available. You may then search for the next record that matches the expression you created with the Locate option.'
hlp_text[10,1] = ' - Next'
hlp_text[10,2] = 'Choose this option to move the record pointer to the next record in the database.'
hlp_text[11,1] = ' - Prior'
hlp_text[11,2] = 'Choose this option to move the record pointer to the previous record in the database.'
hlp_text[12,1] = ' - Top'
hlp_text[12,2] = 'Choose this option to move the record pointer to the top of the database.'
hlp_text[13,1] = ' - Bottom'
hlp_text[13,2] = 'Choose this option to move the record pointer to the last record in the database.'
hlp_text[14,1] = ' <<< RECORD MENU >>>'
hlp_text[14,2] = 'The Record menu contains the Edit, Add, Browse and Delete options. For more information on one of these options, choose the appropriate topic in this Help facility.'
hlp_text[15,1] = ' - Edit'
hlp_text[15,2] = 'Choose this option to edit the current record.'
hlp_text[16,1] = ' - Add'
hlp_text[16,2] = 'This option allows you to add a blank record to the database.'
hlp_text[17,1] = ' - Browse'
hlp_text[17,2] = 'Choosing the Browse option opens a Browse window for the database. In Browse you may view and edit records, and add and delete records.'
hlp_text[18,1] = ' - Delete Recall'
hlp_text[18,2] = 'You may delete the current record by choosing this option. When a record is marked for deletion, this option changes to Recall, and the record may then be reactivated.'
hlp_text[19,1] = ' <<< UTILITIES MENU >>>'
hlp_text[19,2] = 'The Utilities menu contains the Report, Label, Pack and Reindex options. For more information on one of these options, choose the appropriate topic in this Help facility.'
hlp_text[20,1] = ' - Report'
hlp_text[20,2] = 'You may create, modify, or print a report by choosing this option. A Report layout window is opened where you may set up or modify a report.'
hlp_text[21,1] = ' - Label'
hlp_text[21,2] = 'You may create, modify, or print labels by choosing this option. A Label layout window is opened where you may set up or modify labels.'
hlp_text[22,1] = ' - Pack'
hlp_text[22,2] = 'Choosing the Pack option removes all records from the current database that are marked for deletion. You may mark records to be deleted with the Delete option of the Record menu.'
hlp_text[23,1] = ' - Reindex'
hlp_text[23,2] = 'The Reindex option is used to update indexes that were not open when records were added or deleted from a database file.'
* --- build database from array
FOR mx = 1 TO mhelpno
APPEND BLANK
REPLACE topic WITH hlp_text[mx,1],;
details WITH ALLTRIM(ALPHAONLY(PROPER(hlp_text[mx,1])))+CHR(13)+hlp_text[mx,2]
NEXT
RETURN
<<end>> <<*GenProcStandard*>>
<<* Get index file names *>>
<<#
function GetIndexNames( indexchoice : integer ) : string