home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of Shareware - Software Farm 2
/
wosw_2.zip
/
wosw_2
/
QBAS
/
PBCLON20.ZIP
/
PBC$BAS.ZIP
/
CENTERST.BAS
< prev
next >
Wrap
BASIC Source File
|
1992-10-14
|
679b
|
17 lines
' +----------------------------------------------------------------------+
' | |
' | PBClone Copyright (c) 1990-1992 Thomas G. Hanlin III |
' | |
' +----------------------------------------------------------------------+
FUNCTION CenterSt$ (StToCenter$, Columns%)
t% = LEN(StToCenter$)
IF t% < Columns% THEN
St$ = SPACE$(Columns%)
MID$(St$, (Columns% - t%) \ 2 + 1) = StToCenter$
CenterSt$ = St$
ELSE
CenterSt$ = LEFT$(StToCenter$, Columns%)
END IF
END FUNCTION