home *** CD-ROM | disk | FTP | other *** search
- /*
- Listing 4.4 TYPE() example
- Author: Joe Booth
- 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 mpick :=1
- cls
- dispbox(10, 30, 15, 50, 1)
- @ 11,31 prompt "General Ledger "
- @ 12,31 prompt "Accounts Receivable"
- @ 13,31 prompt "Accounts Payable "
- @ 14,31 prompt "Payroll "
- menu to mpick
- do case
- case mpick == 1
- if type("GL()") == "UI"
- Gl()
- else
- ? "General Ledger is not installed...."
- endif
- case mpick == 2
- if type("AR()") == "UI"
- Ar()
- else
- ? "Accounts Receivable is not installed...."
- endif
- case mpick == 3
- if type("AP()") == "UI"
- Ap()
- else
- ? "Accounts Payable is not installed...."
- endif
- case mpick == 4
- if type("PR()") == "UI"
- Pr()
- else
- ? "Payroll is not installed...."
- endif
- endcase
- return nil
-
- // end of file CHP0404.PRG
-