v2.70 Warning # 15

Scantech

Well-Known Member
Licensed User
Longtime User
I just installed v2.70 full.

Warning #15 is still present "File is not used". How do I add ignore to the files attached?

Everything else is ok and fixed.
 

Scantech

Well-Known Member
Licensed User
Longtime User
Can't post all of the codes as they are scattered.

I populate a list with all available fonts.

B4X:
      Dim lstFont As List
      lstFont.Initialize
      lstFont.AddAll(File.ListFiles(File.DirAssets))

Allow user to select from the list

B4X:
      Dim Ret As Int
      Ret = InputList(lstFont, MsgSelect, fsVal)

Change the custom listview font. StateManager.fsFirstFont is the name of the file user has selected. Library type.

B4X:
lstView.SetTextFont(Typeface.LoadFromAssets(StateManager.fsFirstFont))

I will add the warning to the attribute. I just don't like the fact the whole screen is filled with this warning. I want to track any other warnings easily.
 

Rusty

Well-Known Member
Licensed User
Longtime User
I have the same problem.
I have files in my Files folder such as:
Stop.png
Continue.png
and others.
These files need to exist in the files tab as the data in the database dictates which file(s) should be displayed during run-time.
It the warning File 'stop.png' is not used (warning #15) appears but is not necessary. I'd like to suppress this warning without overriding ALL such warnings.
Is there a way to accomplish this?
Thanks,
Rusty
 

Rusty

Well-Known Member
Licensed User
Longtime User
There's no line to put the 'ignore on.
These are files included within the Files tab.
They are needed as assets, but only referred to dynamically during run-time.
Any other suggestions?
Thanks,
Rusty
 
Top