S Scantech Well-Known Member Licensed User Longtime User May 12, 2013 #1 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.
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.
Erel B4X founder Staff member Licensed User Longtime User May 13, 2013 #2 How is the file used? There was an issue in the beta version related to Typeface.CreateNew and this warning. This issue was fixed. You can ignore any warning by either adding: 'ignore comment at the end of line (not relevant for this error). Or with a module attribute: #IgnoreWarnings: 15
How is the file used? There was an issue in the beta version related to Typeface.CreateNew and this warning. This issue was fixed. You can ignore any warning by either adding: 'ignore comment at the end of line (not relevant for this error). Or with a module attribute: #IgnoreWarnings: 15
S Scantech Well-Known Member Licensed User Longtime User May 13, 2013 #3 Can't post all of the codes as they are scattered. I populate a list with all available fonts. Code: Copy Dim lstFont As List lstFont.Initialize lstFont.AddAll(File.ListFiles(File.DirAssets)) Allow user to select from the list Code: Copy 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. Code: Copy 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.
Can't post all of the codes as they are scattered. I populate a list with all available fonts. Code: Copy Dim lstFont As List lstFont.Initialize lstFont.AddAll(File.ListFiles(File.DirAssets)) Allow user to select from the list Code: Copy 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. Code: Copy 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 May 13, 2013 #4 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
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 May 13, 2013 #6 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
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
Erel B4X founder Staff member Licensed User Longtime User May 14, 2013 #7 You can just disable this warning: Or with a module attribute: #IgnoreWarnings: 15 Click to expand...
You can just disable this warning: Or with a module attribute: #IgnoreWarnings: 15 Click to expand...