Hi All
I'm currently using this method to select the file based on the serial number, but ideally would like to find a better way minimize the code
Each file contains 5000 lines per file and I have currently have over 100+ files and growing as more data is added, so that's a lot of coding
the serial length is 6 digits, so could go to 999999
any help would be appreciated
I'm currently using this method to select the file based on the serial number, but ideally would like to find a better way minimize the code
Each file contains 5000 lines per file and I have currently have over 100+ files and growing as more data is added, so that's a lot of coding
vb .net:
Select Case txtGetSerialNumber.text
Case 1 To 5000
strCurrentFileToLoad = "c:\temp\Data1.dat"
Case 5001 To 10000
strCurrentFileToLoad = "c:\temp\Data2.dat"
Case 10001 To 15000
strCurrentFileToLoad = "c:\temp\Data3.dat"
Case 15001 To 20000
strCurrentFileToLoad = "c:\temp\Data4.dat"
End Select
the serial length is 6 digits, so could go to 999999
any help would be appreciated