Library Naming Retrictions?
Posted: Sun Jul 12, 2015 5:27 pm
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:
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?
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}
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?