Extend the Version function
Moderator: Klaus
Extend the Version function
It would be great if the version function returned more than just a number. It would be nice if it told you if it was desktop or server, for example, so that I could code in conditionals when developing on the desktop. Then when I copy and paste to server I don't need to comment stuff in and out by hand each time.
Re: Extend the Version function
Try 'the environment'. Should return server, example <?lc put the environment ?> resturns "server"
Re: Extend the Version function
Ah - exactly what I was looking for.
I guess I will change the feature request to "Update the documentation for environment to indicate that "server" is a possible result.
I guess I will change the feature request to "Update the documentation for environment to indicate that "server" is a possible result.
Last edited by edgore on Fri Aug 02, 2013 3:11 pm, edited 1 time in total.
-
- Livecode Opensource Backer
- Posts: 10080
- Joined: Fri Feb 19, 2010 10:17 am
Re: Extend the Version function
That's a can of worms:
Think about all the different versions of Linux.
Think about all the different versions of Linux.
Re: Extend the Version function
@richmond62
I haven't fooled around with systemVersion enough to know whether it would give you anything useful back in those situations or not, but that might take care of it, along with environment.
My main interest was just being able to put conditionals into my code so I don't have to comment stuff in/out during development and deployment between desktop and server, so environment will work for me.
I haven't fooled around with systemVersion enough to know whether it would give you anything useful back in those situations or not, but that might take care of it, along with environment.
My main interest was just being able to put conditionals into my code so I don't have to comment stuff in/out during development and deployment between desktop and server, so environment will work for me.