Hey srod!
I need to add a few features to qDoc (pretty nifty lib by the way, thanks for sharing). There is nothing about that in the licence: am I allowed to modify it? Shall I release my changes?
qDoc 1.1
Re: qDoc 1.1
Hey, it's me again :
There is some restricted characters in the name of a file you use CreateFile.i(fileName$), could you provide us with a list of those?
There is some restricted characters in the name of a file you use CreateFile.i(fileName$), could you provide us with a list of those?
Re: qDoc 1.1
If you are referring to the \CreateFile() method then any restrictions that exist are due to SQLite and not qDoc. Your filename is used as the name of a database table and so there may well be some restrictions, but nothing that should prove untoward in any way.
By the way, make sure you are using version 1.2 which I uploaded a couple of weeks ago. It fixes some bugs.
By the way, make sure you are using version 1.2 which I uploaded a couple of weeks ago. It fixes some bugs.
I may look like a mule, but I'm not a complete ass.
Re: qDoc 1.1
I thought so, but was hopping you'd have that list and I would not need to check the sqlite documentation (yeah, call me lazy...).
I'm already using 1.2, thanks.
I'm already using 1.2, thanks.
Re: qDoc 1.1
You are one lazy **&&^**^ !Poshu wrote:...yeah, call me lazy...
That should do it!

I may look like a mule, but I'm not a complete ass.
Re: qDoc 1.1
thanks ^_^
Re: qDoc 1.1
FINALLY!
So, what was giving me headaches for the last few weeks: the creation of a file will fail if the name start with a digit (0123456789...) and myqdoc.CreateFile() still return a value. Dunno if it's intended or if it's a bug, but I couldn't find anything in the documentation °_°;
On another subject, when I call the methode SaveDocumentAs.i(filename$) with a memory based qdoc, should I do SaveToMemoryBasedDocument() after to keep it memory based?
So, what was giving me headaches for the last few weeks: the creation of a file will fail if the name start with a digit (0123456789...) and myqdoc.CreateFile() still return a value. Dunno if it's intended or if it's a bug, but I couldn't find anything in the documentation °_°;
On another subject, when I call the methode SaveDocumentAs.i(filename$) with a memory based qdoc, should I do SaveToMemoryBasedDocument() after to keep it memory based?
Re: qDoc 1.1
SQLite does not allow table names which begin with a digit and so qDoc cannot allow filenames beginning with digits. I have just tested and the \CreateFile() method returns zero in such cases. Not sure how you are getting a non-zero return here.
I could of course get qDoc to automatically prefix all filenames with a few characters; e.g. "qDoc_" which would avoid this problem completely. Not sure I really want to do that though.
As for the \SaveDocumentAs() method. The original qDoc will remain intact. That is you will still have a memory based document to hand. No need to create another one.
I could of course get qDoc to automatically prefix all filenames with a few characters; e.g. "qDoc_" which would avoid this problem completely. Not sure I really want to do that though.
As for the \SaveDocumentAs() method. The original qDoc will remain intact. That is you will still have a memory based document to hand. No need to create another one.
I may look like a mule, but I'm not a complete ass.
Re: qDoc 1.1
Damned, and I can't reproduce it now >.<;srod wrote:SQLite does not allow table names which begin with a digit and so qDoc cannot allow filenames beginning with digits. I have just tested and the \CreateFile() method returns zero in such cases. Not sure how you are getting a non-zero return here.
No need, you should just write it in the doc. I've never used sqlite and I'm writing files based on the GUID of some USB devices, so sometime it worked, sometime it did not and I had no clue why; I was blaming unicode, thread, some invisible character, voodoo magic, other stuff like that... It took me a week to think about checking the first character...srod wrote:I could of course get qDoc to automatically prefix all filenames with a few characters; e.g. "qDoc_" which would avoid this problem completely. Not sure I really want to do that though.
Perfect :3srod wrote:As for the \SaveDocumentAs() method. The original qDoc will remain intact. That is you will still have a memory based document to hand. No need to create another one.