## ## generateurltable.wc ## ## This is a simple test page and documentation for the ## generateurltable.lc file. ## #localcode generateurltable.lc GenerateURLTable The GenerateURLTable function is used to take a prepared file and generate a table. Each line of the file contains fields separated by tabs. Each field may contain items which are expanded in the following ways:

To use this, you first must have the generateurltable.lc file in the current directory or in a directory which Webc searches. Then in your *.wc file, use the line: #define _LOCAL-CODE_ #localcode generateurltable.lc

    _LOCAL-CODE_

You can optionally define the way your table looks by defining the appropriate variable: #define _LOCAL-DEFINE_ #define _TABLE-PARAMS_ border=2

    _LOCAL-DEFINE_

Finally, in the place that you want the table to occur, you need to call the function:

#define	_FUNCTION-CALL_ #call GenerateURLTable filename
    _FUNCTION-CALL_

You can examine the sample data file for this example, and the way it looks here:

#define _TABLE-PARAMS_ border=2 #call GenerateURLTable generateurltable.sample

Empty lines, and lines starting with # are ignored. Fields are separated by one or more tabs.

If you have questions, stare hard at the examples and the code. Your answer should appear before your eyes.