06-24-2023, 11:30 PM
My guess would remain what you're using this program to download which is so large.
Otherwise the LOF() value should be placed into an _INTEGER64, the function result's value should not be used directly in a SELECT CASE.
An evaluation of integer arithmetic should give an _INTEGER64 as result because that is the largest integer type available. LOF() came into being when the largest integer was INTEGER, and in QuickBASIC it became LONG (32-bit integer). Back then it was near impossible to deal with any file as large as 2GB.
Otherwise the LOF() value should be placed into an _INTEGER64, the function result's value should not be used directly in a SELECT CASE.
An evaluation of integer arithmetic should give an _INTEGER64 as result because that is the largest integer type available. LOF() came into being when the largest integer was INTEGER, and in QuickBASIC it became LONG (32-bit integer). Back then it was near impossible to deal with any file as large as 2GB.