Help please passing global variables

Hi,
I am having a problem passing data to global variables, I know this is probally a simple problem, but a am new to servoy and would really apreciate some help.

//show solution version
var version = globals.solution_version
version = application.getSolutionRelease();

The above is what I am trying to do??

on the layout I have placed the global to display results

Thanks in advance

PR

what your are doing now is as follows:

your are declaring a variable: version.
you put the value of globals.solution_version into the variable

the second line your are overwriting the variable with the value, you are getting from: application.getSoluitionRelease()

So you are putting twice data into the variable.

If you want to display data into the global, you have to do this:

globals.solution_version = application.getSolutionRelease()

Hope this helps