home *** CD-ROM | disk | FTP | other *** search
- *******************
-
- FUNCTION Dulling
-
- PARAMETERS _astring, _attrib
-
- IF TYPE("_astring") != "C"
- RETURN("")
- ENDIF
-
- IF PCOUNT() = 1
- _attrib = 8
- ELSE
- IF TYPE("_attrib") = "C"
- _attrib = ASC(SUBSTR("_attrib", 1, 1))
- ELSEIF TYPE("_attrib") = "N"
- _attrib = IF((_attrib > 127 .OR. _attrib < 1), 8, _attrib)
- ELSE
- RETURN("")
- ENDIF
- ENDIF
-
- * This function takes a string an returns it with the attribute
- * byte dulled.
-
- PRIVATE _qqq, _gstring && A lonely nite.
-
- _attrib = IF((_attrib > 127 .OR. _attrib < 1), 8, _attrib)
-
- _gstring = ""
-
- FOR _qqq = 1 TO LEN(_astring) STEP 2
- _gstring = _gstring + SUBSTR(_astring, _qqq, 1) + CHR(_attrib)
- NEXT
-
- RETURN( _gstring )
-
- * End of File
-
-