Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NO DATA

Status
Not open for further replies.

pvuppa1

Programmer
Nov 14, 2003
61
US
How can I display a message to user saying "there are no are no records at this time" when there are 0 Records from the table, something like following statement?

IF RECORDCOUNT EQ 0 THEN
TYPE "No records at this time";

Thanks

-P
 
Something like:

TABLE FILE abc
PRINT
etc.
END
-RUN
-IF &LINES IS 0 GOTO NO_DATA;
-EXIT
-NO_DATA
-TYPE There are no records at this time.

Don't forget to pause so the user can read the message.
 
Use an HTML page. Create any html page, give it a .htm extension and make sure it is in your EDAPATH, APP PATH, or application. Then do this.

...
END
-IF &RECORDS GT 0 THEN GOTO DONE;

-HTMLFORM <form name>

-DONE
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top