- Aug
- 2,014
- 81
From http://sites.google.com/site/jlcprogrammingstuff/home/tcc/align
@LALIGN left-aligns text into a string of x characters
@CALIGN centre-aligns text into a string of x characters
@RALIGN right-aligns text into a string of x characters
Joe
Code:
:: ALIGN.BTM
::
:: Demonstrate the use of the Variable Functions of the
:: ALIGN Plugin, available from;
::
:: https://sites.google.com/site/jlcprogrammingstuff/home/tcc/align
::
:: Written by Joe Caverly
:: Tested with Windows XP SP3, TCC 11.00.52
::
::
@echo off
@setlocal
if not plugin align plugin /l align
echo %@LALIGN[Left-Aligned,20]%@CALIGN[Centre-Aligned,20]%@RALIGN[Right-Aligned,20]
do kount = 1 to 25
echo %@LALIGN[Line %kount,20]%@CALIGN[Line %kount,20]%@RALIGN[Line %kount,20]
enddo
if plugin align plugin /u align
@endlocal
@CALIGN centre-aligns text into a string of x characters
@RALIGN right-aligns text into a string of x characters
Joe