uthtmkey.wbb - Generate HTML List from a File, Given a List of Keys
Syntax
CALL "uthtmkey.wbb",chan,keys$,keylen,tpl$,text$,work$,linkexpr$
Description
This high-level program simplifies the process of producing an HTML listing of records from a single file, using a predefined list of keys that can be iterated with a specified key length. The CALLing program builds the list of primary keys and CALLs this program to create HTML for each record specified in that list.
Parameter |
Description |
---|---|
chan |
Channel that the file to be READ is opened on must be opened before CALLing this program. |
keys$ |
String variable that contains the list of keys to process. Each key must be the same length, as indicated in the keylen variable. |
keylen |
Length of each key in keys$. |
tpl$ |
Data template to read records from the file indicated by chan. |
text$ |
String variable that contains the HTML format for each record, along with embedded data name tags. For each record, the program "uthtmout.wbb" is CALLed, using this as the format text. See uthtmout.wbb for additional information. |
work$ |
Returns the HTML text for the records. |
linkexpr$ |
Text string used by "uthtmout.wbb" to generate any href links from the records to another page. See uthtmout.wbb for additional information. |