home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 12.10. An improved AskCust() function with correct scope.
- (see also ASKCUST.CH)
- 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(r, c, message)
- /*
- General-purpose "which customer #" prompt:
- r row,
- c column,
- message prompt to display at r, c.
-
- Returns end-user's answer to the prompt.
- */
- local answer := space(6)
- local getlist := {}
-
- setcolor("GR+/B")
- setcursor(1)
- @ r, c say message get answer picture "999999"
- read
- setcolor("W/N")
- setcursor(0)
-
- return answer
-
- // end of file CHP1210.PRG
-