home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Flushright
-
- PARAMETERS _string, _size, _padding
-
- IF EMPTY(PCOUNT())
- RETURN("")
- ELSEIF PCOUNT() = 2
- _padding = " "
- ENDIF
-
- IF TYPE("_string")+TYPE("_size")+TYPE("_padding") != "CNC"
- RETURN("")
- ENDIF
-
- IF LEN(_string) >= _size
- RETURN(RIGHT(_string, _size))
- ELSE
- RETURN( REPLICATE(SUBSTR(_padding, 1, 1), _size - LEN(_string)) + _string)
- ENDIF
-
- * End of File
-
-