home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Power-Programmierung
/
CD1.mdf
/
pascal
/
library
/
dos
/
topaz
/
qnr
/
qnrdot.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1991-08-07
|
2KB
|
81 lines
Program QNRDot;
Uses
DBF4,
Pick,
SAYGET4,
Browse4,
VidPop,
QNR,
Crt;
Var
Done : Boolean;
SampleQuery,
FileName : String;
Procedure DisplayResults;
Begin
Set_BrowseWindow_To(25, 2, 79, 19, DoubleTopSingleSide + Shadow + Explode,
'Query Result');
{ Initialize the query marker }
InitializeQuery;
If ParseQuery
Then
Begin
SET_FILTER_TO(@ProcessQuery);
GoTop;
If Not dEof
Then
Begin
PushWindow(25, 2, 79, 19);
Browse('PLAIN');
PopWindow
End
Else
Writeln('The query returned no valid records!');
SET_FILTER_TO(Nil)
End;
End;
Begin
Writeln;
Writeln('QNRDOT - V01.00');
Writeln('(C)opyright 1991 - Caboose Software Engineering');
Writeln;
Write('USE ');
If ParamCount = 0
Then
Readln(FileName)
Else
Begin
FileName := ParamStr(1);
Writeln(FileName)
End;
If Pos('.', FileName) = 0
Then
FileName := FileName + '.DBF';
If (FileExists(FileName))
Then
Begin
Use(FileName, NIL, 0);
If (RecCount > 0)
Then
Begin
SampleQuery := '';
Write('BROWSE ALL FOR ');
Readln(SampleQuery);
QueryString := SampleQuery;
DisplayResults
End
Else
Writeln('The file selected has no records!');
Use('', NIL, 0)
End
Else
Writeln('The file does not exist!')
End.