Compiler complaining about module filenames
Stephen Bolton
Junior Member
This is weird and doing my head in.
Created module and saved in Studio as 'SB&A Avitech Sequoa V1.00.axs'
Windows filename is the same.
It won't compile. Grizzles about the name as follows:
No it's not named 'SB&A Avitech Sequoa V1' at all! Windoz Explorer confirms a file called SB&A Avitech Sequoa V1.00.axs, and,
So, tweak the module name to be 'SB&A Avitech Sequoa V1' and it compiles
When I instantiate it, the main code now grizzles about using 'SB&A Avitech Sequoa V1' saying it doesn't exist, but if I tell it to use 'SB&A Avitech Sequoa V1.00' it works.
Seems like the module .axs file is struggling to use the '.00' portion of my revision number declared in module_name even though it was studio who saved a windows filename of the same name!
Anyone seen this?
Have I missed something?
Created module and saved in Studio as 'SB&A Avitech Sequoa V1.00.axs'
Windows filename is the same.
It won't compile. Grizzles about the name as follows:
ERROR: C:\blahblah\SB&A Avitech Sequoa V1.00.axs(1): C10532: File is named [SB&A Avitech Sequoa V1.00], but module name is [SB&A Avitech Sequoa V1]
No it's not named 'SB&A Avitech Sequoa V1' at all! Windoz Explorer confirms a file called SB&A Avitech Sequoa V1.00.axs, and,
module_name='SB&A Avitech Sequoa V1.00'(dev ip_port_num,blahblahblah)
So, tweak the module name to be 'SB&A Avitech Sequoa V1' and it compiles
When I instantiate it, the main code now grizzles about using 'SB&A Avitech Sequoa V1' saying it doesn't exist, but if I tell it to use 'SB&A Avitech Sequoa V1.00' it works.
Seems like the module .axs file is struggling to use the '.00' portion of my revision number declared in module_name even though it was studio who saved a windows filename of the same name!
Anyone seen this?
Have I missed something?
Comments
-
You may be correct. I tend to avoid dots anywhere in a file name except the suffix. I also avoid actual spaces and use underscores. It's left over from the olden days of yore when Unix didn't like them in file names.
-
ericmedley wrote: »You may be correct. I tend to avoid dots anywhere in a file name except the suffix. I also avoid actual spaces and use underscores. It's left over from the olden days of yore when Unix didn't like them in file names.
100% agree with this ^^^. It may be an outdated paranoia, but I just can't bring myself to trust modern filename permissions. -
Certainly handles 'V1.00' stlye naming convention correctly with 'program_name'......
I am suspicious about '&' also. In the days of G3 webcontrol, the XML used to freak out and fail when it saw that.
I've not removed the ampersand from the filename to test this theory or perhaps even a combination of both theories yet - Just haven't had a window of opportunity to stop and try it..
Thanks for the replies gentlemen...much appreciated. -
Using a '.' in the middle of a filename used to work, but the workspace doesn't like it anymore. Some library wants to treat it as the end of the filename no matter what, and everything after is an extension. It's inconsistent. It works in some places, and some not. So I just use an underscore on minor version numbers.
-
Thanks Dave, might need to shift my naming conventions I think, although I do like the legibility of V1.00. Two flavours is just too hard when you're under the pump.
Appreciate the replies... -
NetLinx Studio doesn't mind dots in "axi" file names, but doesn't like dots int "axs" file names except source files.
So, for all of my module files I use an underscore in place of a dot.
Yes, it's a strange inconsistency.
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums