Library Naming Retrictions?

Post Reply
matt7
Posts: 115
Joined: Sun Jul 12, 2015 5:00 pm
My devices: iPhone
Location: USA

Library Naming Retrictions?

Post 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?

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Library Naming Retrictions?

Post by Mr. Kibernetik »

No, there are no file naming restrictions.
It is a very strange effect.

matt7
Posts: 115
Joined: Sun Jul 12, 2015 5:00 pm
My devices: iPhone
Location: USA

Re: Library Naming Retrictions?

Post by matt7 »

Ah ok, sounds like a bug then. For now I will just find a name that works.

Thanks for the quick response!

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Library Naming Retrictions?

Post 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.

Post Reply