
Floyd02 |
Sorry, I should have added that my subfile is in a window with record selection including update and delete.
Could I use a duplicate subfile control record without the overlay keyword since the main one does have the keyword in effect?

Floyd02 |
I conditioned the Overlay keyword on the SFL control record to be off when there are no records to display. Now, my message stating there are no records displays above an empty SFL. The only problem now is the function key record is no longer displayed. This is better than what I had but I would like to see the Fkey record somehow.

Birddon |
You can use the ERASE keywords conditioned on when you don’t display the subfile.
Think of it as SFLCLR working in the virtual file and ERASE working on the screen in memory.

Sloopy |
The method I use is to create a format which overlays the subfile:
A R <a href="mailto:D@NDT1">D@NDT1</a> TEXT('No data in subfile')
A OVERLAY PUTOVR
A 10 30' '
Then, in the code:
C Write <a href="mailto:D@FOOT">D@FOOT</a> Footer
C Write <a href="mailto:D@MSGCTL">D@MSGCTL</a> Messages
C N14 Write <a href="mailto:D@NDT1">D@NDT1</a> No Subfile
C Exfmt <a href="mailto:D@SF1C">D@SF1C</a> Sfl Control screen
If 14 is OFF, there are (now) no records in the subfile, and the “no data” format overlays the subfile, which clears it off the screen.
Regards!

Sloopy |
Wow, this text editor is savage!
Er…. the code sample in my previous post has been mauled by the editor. It appears that the “@” symbol is taken to be an email address. Please look at it like this (”at” symbol replaced by #) :
C Write D#FOOT Footer
C Write D#MSGCTL Messages
C N14 Write D#NDT1 No Subfile
C Exfmt Sfl Control screen
I hope that is clearer.

Floyd02 |
Birddon,
I don’t know if your monitoring this thread any more due to it’s age but I used your idea on another SFL where I had a SFLMSG being displayed on line 18 of a 24 line display, above the FKey’s and below the last line of the SFL.
Using the other methods described in this thread caused me to lose the SFLMSG and the FKey’s. Your method of conditioning the ERASE keyword with the off indicator for the SFLDSP keyword worked perfectly, exactly what I was looking for - Thanks again.