Once more.
I notices (because of an error from me) that my Listbox get pdf files (and generate tons of troubles, of course). Once the feature I debugged was done, I checked that.
In Window1.Open
, I do not have AcceptFileDrop
In (Listbox) LB.Open
, I have three AcceptFileDrop
. I commented two of them (Raw TXT and CSV) and keep SQLite (naked: only file extension is filled).
I checked the Editors and disable .TXT and .CSV to be sure they will not interfere with the Window1.Open code.
Run in the IDE and I was able to drop a Raw Text File and get its contents (by chance, that text holds valid data (but it was a service file sued elsewhere in the application). More surprising, a DOC file (Word ?) is accepted(I get the tons of troubles I talked above.
Must I add a second filtering schema in LB.DropObject
like:
If DropFI.Directory Then Return // Reject directories drops
If Right(DropFI.Name,3) = "PDF" Then Return // Reject PDF drops
If Right(DropFI.Name,3) = "DOC" Then Return // Reject DOC drops
to exclude some entries.
Must I use some way to accept the file extensions I want to accept ?
(Like If Right(DropFI.Name,6) = "SQLite" Then
but in this case, I have to wrote as many lines as I have file extensions.
And I do not talk about the other file types I will accept later (like XML, JSON, etc.).
For the sake of the test, I commented all Me.AcceptFileDrop
lines from LB.Open
: I do not found any Item that is accepted (so a part of the mechanism works).
That Window1 only deals with text data that are displayed with a Listbox (LB).
BTW: my project is build (developped) using Xojo 2015r1. However, before writing a report here, I load my project with the latest Xojo release (in this case: 2016r3), just in case I found a squashed bug (a bug that was removed between the two release).
I will share a beta of this application later, once this trouble will disappear. It is not fully featured (some are incomplete), but I hope it is bug free (as free as possible: I do not know any)*
- until some appears for unknow reason. For example: print in colours works now file excepted that the (first in the test) is incomplete: the last 10 lines are printed in the next page (Landscape). I am acustomed to these mysteries.