Bug? Wrong warning #17 ?

jmon

Well-Known Member
Licensed User
Hello,

I may have found a problem with the warning number #17:

missingFile.png


The warning shows up in this case scenario:

B4X:
CallSubDelayed3(Me, "LoadSmallImage", CreateMap("Dir": File.DirAssets, "FileName": "image.png"), iv)
I think the IDE expects a valid file name to be added after "File.DirAssets", eventhough in this case it a key from a map.

Thanks for your support.
 

Erel

Administrator
Staff member
Licensed User
Will be fixed.
BTW, you don't need to use CallSubDelayed here.

It is equivalent to:
B4X:
Sleep(0)
If FileName<> ...
 LoadSmallImage(...)
 Return ...
Else
 LoadSmallImage(...)
 Return ...
End If
 

jmon

Well-Known Member
Licensed User
Thanks, good solution, I guess you saw that I was limited by the number of parameters of CallSubDelayed3!
 
Top