Page 1 of 1

Library Naming Retrictions?

Posted: Sun Jul 12, 2015 5:27 pm
by matt7
Hello everyone, I'm new to the forum. (I only downloaded smart BASIC a week ago.) Mr. Kibernetik, awesome work on this app! I've enjoyed tinkering with it this last week!

I have a question though about library file naming. I have a file named "Remove.txt" in my lib folder, which contains three functions: REMOVE1, REMOVE2, REMOVE3. These functions simply remove a record from anywhere in an array (a separate function for 1-, 2-, and 3-dimensional arrays). In my main program, I receive an error when I try to insert the contents of this file using:

Code: Select all

{/lib/Remove}
This produces the error: "Syntax error". The same error is given if I include ".txt" in the code. I figured "Remove" was probably being interpreted by the app as something other than my file name, so I renamed the file "Array-Remove.txt". However, this gives the same error. I do not have this error for my other library files "Array-Insert.txt", "Array-Sort.txt", and "Array-Redim.txt".

I was surprised to see that I also got this error when replacing the "o" with a "0" (zero)! I was expecting instead to get the error: "Error inserting file".

Can someone help me understand what I'm doing wrong? Are there specific words I can't use in my library file names?

Re: Library Naming Retrictions?

Posted: Sun Jul 12, 2015 5:34 pm
by Mr. Kibernetik
No, there are no file naming restrictions.
It is a very strange effect.

Re: Library Naming Retrictions?

Posted: Sun Jul 12, 2015 5:46 pm
by matt7
Ah ok, sounds like a bug then. For now I will just find a name that works.

Thanks for the quick response!

Re: Library Naming Retrictions?

Posted: Sun Jul 12, 2015 6:01 pm
by Mr. Kibernetik
Yes, this is a bug. It is because of "rem" text in the file name.
This will be corrected in next version.