home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 26.11 Testing GET Types
- Author: Greg Lief
- 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
- */
-
- //───── NOTE: must compile with the /N option!
-
- function main
- local w := "Press F1 to test type of each GET", x := 0, y := .t., z := date()
- set key 28 to testtype
- cls
- @ 11, 0 get w
- @ 12, 0 get x
- @ 13, 0 get y
- @ 14, 0 get z
- read
- return nil
-
-
- function testtype(p, l, v)
- local type := { "Character", "Numeric", "Date", "Logical" } ;
- [at(getactive():type, "CNDL")]
- @ 0,0 say "Current variable is " + padr(type, 9)
- return nil
-
- // end of file CHP2611.PRG
-