Page 2 of 2
Re: qDoc 1.1
Posted: Sun Dec 16, 2012 4:29 pm
by Poshu
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?
Re: qDoc 1.1
Posted: Sun Dec 16, 2012 5:14 pm
by srod
Do as you wish with it.

Re: qDoc 1.1
Posted: Wed Jan 22, 2014 11:45 pm
by Poshu
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?
Re: qDoc 1.1
Posted: Wed Jan 22, 2014 11:55 pm
by srod
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.
Re: qDoc 1.1
Posted: Thu Jan 23, 2014 1:17 am
by Poshu
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.
Re: qDoc 1.1
Posted: Thu Jan 23, 2014 10:22 am
by srod
Poshu wrote:...yeah, call me lazy...
You are one lazy **&&^**^ !
That should do it!

Re: qDoc 1.1
Posted: Sun Jan 26, 2014 9:59 pm
by Poshu
thanks ^_^
Re: qDoc 1.1
Posted: Wed Feb 12, 2014 1:07 am
by Poshu
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?
Re: qDoc 1.1
Posted: Wed Feb 12, 2014 11:39 am
by srod
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.
Re: qDoc 1.1
Posted: Wed Feb 12, 2014 8:05 pm
by Poshu
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.
Damned, and I can't reproduce it now >.<;
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.
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: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.
Perfect :3