Hi All,
I have a small problem trying to pre-think what a user may do wrong.
Part of the program looks for a file in external memory provided by the user. Despite writing instructions that the file be all lower case it is inevitable that an upper case character will be used at some time.
Part of the code is shown below, how do I handle a file named "ImpSiteList.CSV" transparent to the user?
Regards Roger
NOTE: Table created in the designer.
I have a small problem trying to pre-think what a user may do wrong.
Part of the program looks for a file in external memory provided by the user. Despite writing instructions that the file be all lower case it is inevitable that an upper case character will be used at some time.
Part of the code is shown below, how do I handle a file named "ImpSiteList.CSV" transparent to the user?
Regards Roger
NOTE: Table created in the designer.
B4X:
If File.Exists(File.DirRootExternal&"/ABT/", "impsitelist.csv") = False Then
CustomToastMsg.Show("File 'impsitelist.csv' not found",1000,Gravity.TOP,0,25%y)
Else
Private su As StringUtils
Private Table As List
Table = su.LoadCSV(File.DirRootExternal&"/ABT/", "impsitelist.csv",",")
End If