| **Navigation:**  [[introduction.htm|Language Reference]] > [[chapter runtime properties.htm|App C - PROP: Runtime Properties]] > Runtime VIEW and FILE Properties >====== PROP:FileSize ====== | [[prop files.htm|{{btn_prev_n.gif|Previous page}}]][[chapter runtime properties.htm|{{btn_home_n.gif|Return to chapter overview}}]][[prop flushlog.htm|{{btn_next_n.gif|Next page}}]] | | || **//file//****{PROP:FileSize}** | //file// | The label of the file, or a property that references a file label. | {{blk2blue.jpg|blk2blue.jpg}} PROP:FileSize returns the number of bytes in the file. [[bytes return size in bytes .htm|BYTES()]] returns the file size until the first record access, then it returns the size of the last read record. PROP:FileSize can be used to return the full file size after the first GET/NEXT/ADD statement. **Example:** **ProcessClass.Reset PROCEDURE** **CODE** **SELF.RecordsProcessed = 0** **IF ~SELF.StepMgr &= NULL** **SELF.SetProgressLimits** **ELSIF ~SELF.RecordsToProcess** **SELF.Primary.Me.UseFile** **SELF.RecordsToProcess = RECORDS(SELF.Primary.Me.File)** **IF ~SELF.RecordsToProcess ! Records not supported** **SELF.FileSize = SELF.Primary.Me.File{****PROP:FileSize****}** **END** **END** **SELF.ChildRead = 0** **PARENT.Reset**