Re: [Gambas-user] Help with understanding how not to hard-code paths

2008-08-23 Thread werner 007
Gambas has the two objects "system" and "user", which contain also path information. Use these often! For example, "user.home" contains the home-directory, add to this the string "./YourApplicationName" as path to the directory of your images. Regards, Werner -- View this message in context: h

Re: [Gambas-user] Help with understanding how not to hard-code paths

2008-08-17 Thread Joshua Higgins
What I would do in this situation is this. Use a module, say MProgram to store settings like the path to the data for your program in. Inside that module have a public string for the path: PUBLIC path AS STRING. Now all you need to do is ask the user for the path to the data files, and replace all

[Gambas-user] Help with understanding how not to hard-code paths

2008-08-17 Thread richard terry
I've got to the point with my program where I need to remove hard coding references I used when starting to develop the concepts of my program, so I'd like to ask for some advice how to do this, in a couple of situations. 1) When the program runs 2) To do with html I've saved to my database, w