uthtmkey.wbb

Generate HTML list from a file, given a list of keys

Syntax

CALL "uthtmkey.wbb",chan,keys$,keylen,tpl$,text$,work$,linkexpr$

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.

chan is the channel that the file to be READ is opened on must be opened before CALLing this program.

keys$ is a string variable that contains the list of keys to process. Each key must be the same length, as indicated in the keylen variable.

keylen indicates the length of each key in keys$

tpl$ is a data template to read records from the file indicated by chan.

text$ is a 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 the uthtmout.wbb information for more details.

work$ returns the HTML text for the records.

linkexpr$ is a text string used by "uthtmout.wbb" to generate any href links from the records to another page. See the uthtmout.wbb information for more details.

 
Return to first page