home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 12.9. A first attempt at converting in-line code to a
- general-purpose user-defined function.
- Author: Craig Yellick
- Excerpted from "Clipper 5: A Developer's Guide"
- Copyright (c) 1991 M&T Books
- 501 Galveston Drive
- Redwood City, CA 94063-4728
- (415) 366-3600
- */
-
- function AskCust
- /*
- General-purpose "which customer #" prompt:
- r row,
- c column,
- message prompt to display at r, c.
-
- Returns end-user's answer to the prompt.
- */
- parameters r, c, message
- local getlist := {}
- private answer := space(6)
-
- clear gets
- setcolor("GR+/B")
- setcursor(1)
- @ r, c say message get answer picture "999999"
- read
- setcolor("W/N")
- setcursor(0)
-
- return answer
-
- // end of file CHP1209.PRG
-