Hello Thomas,

Wednesday, June 2, 2004, 9:05:57 AM, you wrote:
Thomas> Is there a way to generate a random integer within a template?
Thomas> I want to pick a random line in a textfile to inlclude in my
Thomas> template.

Thomas> Example:
Thomas> %Getline("random_number_here","%Include='d:\magicfile.txt")


TB already does this.

1. Create a text file with each item on a single line.
   Use the \n in places where you want the text to wrap.

   i.e. This line will wrap\nwherever there is a \n

   Will show up as:

   This line will wrap
   wherever there is a

2. Use this line in your template:

   %COOKIE="d:\magicfile.txt"

You're done.


-- 
Leif (TB list moderator and fellow end user).

Tagline of the day:
It might look like I'm doing nothing, but at the cellular level I'm
really quite busy.

Using The Bat! 2.11 RC/1 under Windows 2000 5.0
Build 2195 Service Pack 4 on a Pentium 4 2GHz with 512MB


________________________________________________
Current version is 2.11.00 | 'Using TBUDL' information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to