** ** Find the size of the input file. ** Be sure to move back to the beginning of the file. ** ln_TotalBytes = FSEEK( ln_InputFile, 0, 2 ) = FSEEK( ln_InputFile, 0, 0 ) ** ** Initialize a variable to store the percentage currently being ** displayed. ** ln_PreviousPercentage = 0Then, inside your FEOF() loop, use the following to update the caption. I only update the progress bar on percentage increments so it isn't updating too often. If you are doing a lot of processing inside the loop, you may need to update more frequently.
** ** Update the progress (if necessary). ** ln_BytesRead = FSEEK( ln_InputFile, 0, 1 ) ln_Percentage = ROUND( ( ln_BytesRead / ln_TotalBytes ) * 100, 0 ) IF ln_Percentage <> ln_PreviousPercentage _SCREEN.CAPTION = TRANSFORM( ln_Percentage ) + "%" ln_PreviousPercentage = ln_Percentage ENDIF>Is there any way to show progress when scanning a file using low-level functions? I have this code: