home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Zodiac Super OZ
/
MEDIADEPOT.ISO
/
FILES
/
13
/
N_B_V203.ZIP
/
QERYPRNT.DMO
< prev
next >
Wrap
Text File
|
1996-07-04
|
2KB
|
39 lines
$if 0
┌──────────────────────────╖ PowerBASIC v3.20
┌──┤ DASoft ╟──────────────────────┬──────────────────╖
│ ├──────────────────────────╢ Copyright 1995 │ DATE: 1995-10-01 ╟─╖
│ │ FILE NAME QERYPRNT.DMO ║ by ╘════════════════─ ║ ║
│ │ ║ Don Schullian, Jr. ║ ║
│ ╘══════════════════════════╝ ║ ║
│ A license is hereby granted to the holder to use this source code in ║ ║
│ any program, commercial or otherwise, without receiving the express ║ ║
│ permission of the copyright holder and without paying any royalties, ║ ║
│ as long as this code is not distributed in any compilable format. ║ ║
│ IE: source code files, PowerBASIC Unit files, and printed listings ║ ║
╘═╤═════════════════════════════════════════════════════════════════════╝ ║
│ .................................... ║
╘═══════════════════════════════════════════════════════════════════════╝
$endif
$INCLUDE "DAS-NB01.INC"
$INCLUDE "DAS-NB02.INC"
$INCLUDE "DAS-NBT1.INC"
CLS
? "┌───────────────────────────────────────────────────────────────────────
? "│ fQueryPrint$ ( Row?, Col?, Cols?, Mask$, Answer$ )
? "├─────────────────────────────────────────────────────────────────────────
? "│ TINPUT_Q is the function that handles the QUERY mini-menu inputs. This
? "│ function allows external access to it's logic to print the answers.
? "│ A mask string like: YNM|YES|NO|MAYBE is fed into fQueryPrint$ with an
? "│ answer (or null) and the function will pop out the string to be printed.
? "│ If Row? > 0 then the string will be automatically printed to the Row?
? "│ Col? and Cols? indicated but if Row? = 0 then no printing will be done.
? "└─────────────────────────────────────────────────────────────────────────────
Mask$ = "YNM|Yes|No|Maybe" ' the mask with answers & strings
'
fQueryPrint 12, 1, 5, Mask$, "M" ' automatic printing of answer
'
P$ = fQueryPrint$( 0, 0, 0, Mask$, "" ) ' just extract the answer for the
Tprint 13, 1, P$, 14 ' default NULL then print it yourself