home *** CD-ROM | disk | FTP | other *** search
- ********************
-
- FUNCTION Adjustit
-
- PARAMETERS _therow, _thecol, _withdelt
-
- * _therow = the row for the message to be displayed
- * _thecol = the col for the message to be displayed
- * defaults are at 24,00 respectively
-
- IF PCOUNT() = 0
- _therow = 24
- _thecol = 0
- _withdelt = .F.
- ELSEIF PCOUNT() = 1
- _thecol = 0
- _withdelt = .F.
- ELSEIF PCOUNT() = 2
- _withdelt = .F.
- ENDIF
-
- IF TYPE("_therow") + TYPE("_thecol") + TYPE("_withdelt") != "NNL"
- RETURN(.F.)
- ENDIF
-
- * this function acts like ADJUST() except this one will display
- * the appropriate message at given (or assigned) row/col coordinates
-
- _tcolor = SETCOLOR()
- SETCOLOR("W*+" + SUBSTR(SETCOLOR(), AT("/", SETCOLOR()))) && Set the color
- IF EOF()
- @ _therow, _thecol SAY "End of File" + _Isdelt()
- GO BOTTOM
- ELSEIF BOF()
- @ _therow, _thecol SAY "Top of File" + _Isdelt()
- GO TOP
- ELSE
- SETCOLOR(Set_color(Attribute(_therow, _thecol)))
- @ _therow, _thecol SAY " " + _Isdelt()
- ENDIF
- SETCOLOR(_tcolor) && Reset the color
- RETURN( (DOSERROR()= 0) )
-
- *******************
-
- FUNCTION _Isdelt
-
- IF _withdelt
- IF DELETED()
- RETURN(" & Deleted ")
- ELSE
- RETURN(" ")
- ENDIF
- ELSE
- RETURN("")
- ENDIF
-
- * End of File
-
-