PDA

View Full Version : File naming conventions



barrymavin
2012-10-29, 02:03
When developing on Microsoft Windows developers rarely think about file naming conventions and often name files in mixed case and sometimes use spaces in the filenames.

Lianja will handle this just fine on Windows but if you want your Apps to run on Linux and Mac also, you should take care not to use mixed case filenames. Linux in particular will not find the files as it uses case sensitive filenames. Mac is dependent on what format the disk is in and may fail also.

Best way is to always use lowercase filenames. Thinking about this as you develop your Apps on Windows now will make it easier to move them between platforms. Furthermore it will allow you to share data on a network with Mixed Windows, Linux and Mac clients.

StevenH
2014-12-05, 12:10
This is a great tip. As a foxpro programme I typically use mixed casee for everything; vars, arrays...everything.

This tip will save me lots of time and grief.

barrymavin
2014-12-05, 19:21
There is no issue with mixed case variable names. This is only referring to filenames, which includes database names).