;; | ---------------------------------------------------------------------------- ;; | ST_RJ ;; | ---------------------------------------------------------------------------- ;; | Function : Pad a String with spaces in the left(Right justified) ;; | Argument : 'Str' - String to process ;; | 'len' - Length of the padded string to create ;; | Return : The padded string ;; | Updated : February 5, 1999 ;; | e-mail : rakesh.rao@4d-technologies.com ;; | Web : www.4d-technologies.com ;; | ---------------------------------------------------------------------------- ; Pad a String with spaces in the left(Right justified) (defun ST_RJ(Str len / _len Str1 diff) (setq _len (strlen Str) diff (- len _len) Str1 "" ) (if (>= diff 0) (repeat diff (setq Str1 (strcat Str1 " ")) ) ) (setq Str (strcat Str1 Str)) )