Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CC.LIB - ClipCode CLIPPER S'87 Library - <b>ctrpos() get the column position to center a string [between two columns]</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 CTRPOS()    Get the column position to center a string [between two columns]

 Syntax....: CTRPOS( mstr [,lc [,rc]] )
 Parameters: <expC>: mstr = the string to be centered
 [optional]  <expN>: lc   = left column    [optional]
  "      "   <expN>: rc   = right column   [optional]

 Returns...: <expN>: the starting column position
 Cautions..: none
 CC Calls..: none
 Alias.....: none

 Example...: mText = " PAGE 2 "
             @ 06,CTRPOS(mText,10,50) SAY mText

 Comment...: Note: can also be used with printer output


See Also: CTRTXT CENTER LJUST RJUST

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson