home *** CD-ROM | disk | FTP | other *** search
- *****************************************************************************
- * FUNCTION MEMOGET() for Clipper Summer '87 *
- * by Steve Badaracco 10/5/88 *
- * Purpose: To provide a way to perform a GET on a character string *
- * within a SET KEY procedure without using the READ statement. *
- * This function provides a better method than the ACCEPTAT() *
- * function provided with Clipper Summer '87. *
- * Syntax : <memvar> = MEMOGET(<expN1>,<expN2>,<expN3>[,<expC>]) *
- * <expN1> is the row (0..24) to put the get window *
- * <expN2> is the col (0..74) to BEGIN the get window *
- * <expN3> is the row (0..79) to END the get window *
- * <expC> (optional) is a character string to be edited in the *
- * get window. If not specified, a blank window will be *
- * provided to create a new string. *
- * Returns: The TRIM()ed result of the MEMOEDIT()ed string when the "Enter" *
- * key is pressed. "Esc" is disabled during the operation. *
- * Note : Minimum width of a MEMOEDIT() window is 6 characters. *
- *****************************************************************************
- Function MemoGet
- parameters mg_row,mg_cola,mg_colb,mg_old
- private stringy
- stringy = if(type('mg_old')#'C','',mg_old)
- set key 27 to memogete
- stringy = memoedit(stringy,mg_row,mg_cola,mg_row,mg_colb,true,'memogetf',2000)
- set key 27 to
- return trim(stringy)
- *
- Function MemoGetF && process the "Enter" key
- parameters mguf_stat,mguf_line,mguf_col
- if (mguf_stat # 3) .and. (lastkey()=13)
- keyboard Chr(23)
- endif
- return 0
- *
- Procedure MemoGetE && process the "Esc" key
- parameters a,b,c
- keyboard ""
- return
- *
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-