Type of module variables
Posted: Thu Apr 16, 2015 8:23 am
I try to change the type of a module variable from String (default) to Int32.
I know I could change it if I use the variable as argument in a method via F4, but I assign the value to the variable via return from the method. When I click F4 on this piece of usercode, it shows me the variable, but no choice to change the type of the variable. The returntype of the method is also int.
When I run the method it tells me you can't convert from Int to String which is logic, but where can I change the type of a module variable never used as argument in a method?
I know I could change it if I use the variable as argument in a method via F4, but I assign the value to the variable via return from the method. When I click F4 on this piece of usercode, it shows me the variable, but no choice to change the type of the variable. The returntype of the method is also int.
When I run the method it tells me you can't convert from Int to String which is logic, but where can I change the type of a module variable never used as argument in a method?