normally also in debug mode after the IF query the compiler should jump to line 215 because the file "BitmapNotFound.png" exists, but it does not.
I have already run "Tools -> Clean project" several times, unfortunately without success.
You should know which files were added to File.DirAssets. You added those files.
If you do need this check then add a text file with the list of files (you can actually generate it during compilation with a custom build action), read this file and use it for this check.
Public Sub FileExistAsset(FileName As String) As Boolean
For Each Name As String In File.ListFiles(File.DirAssets)
If FileName = Name Then Return True
Next
Return False
End Sub
Public Sub FileExistAsset(FileName As String) As Boolean
For Each Name As String In File.ListFiles(File.DirAssets)
If FileName = Name Then Return True
Next
Return False
End Sub
This code is a part of a library.
Since this library can be used in multiple apps, there is a risk of writing something that is not present in "dirAssets" or is written incorrectly.
Since this error is not noticed right away, it must be seen right away in the menu display. Therefore I show a warning icon to make you aware of the error.
This code is a part of a library.
Since this library can be used in multiple apps, there is a risk of writing something that is not present in "dirAssets" or is written incorrectly.
Since this error is not noticed right away, it must be seen right away in the menu display. Therefore I show a warning icon to make you aware of the error.