Author Topic: Last Record in Filepro  (Read 2453 times)

0 Members and 2 Guests are viewing this topic.

yoleny

  • Member
  • Posts: 2
    • View Profile
Last Record in Filepro
« on: September 29, 2006, 11:58:35 AM »
How can I simulate the EOF function?

kenbrody

  • Administrator
  • Posts: 82
    • View Profile
Re: Last Record in Filepro
« Reply #1 on: September 29, 2006, 05:53:03 PM »
Quote from: "yoleny"
How can I simulate the EOF function?


I don't understand the question.  What "EOF function" are you referring to?

Your previous quesion asked about detecting when you are processing the last record.  If by that you mean you are running an output process and want to know when you are on the last record of the output, you can do this by checking if @RS equals @TS.  (That is, if the number of records selected so far equals the total number of records that were selected.)

Alternatively, you can do something in the @WGT (grand total) event, which is done after processing the last record, or @DONE, which is done after the entire output has been generated.
Kenneth Brody
aka "Mr. filePro"  :-)

yoleny

  • Member
  • Posts: 2
    • View Profile
Last Record in Filepro
« Reply #2 on: October 02, 2006, 10:21:41 AM »
Thanks. You understood perfectly and I could do what I needed.

I used @RS EQ @TS at the beginning of the output process only file and it works.

Thanks again.

Yoleny