This might be a stupid/easy question, but I'll give it a go anyway....

My problem is:

I use ReadProfileString to read a value from a INI file.

This makes the variable a String Value (8). The value here is always a number between 1000 and 9999.

To make something like "$Val = $Val + "1"" work, i need to convert the value to a Integer.

This workes nice if i use something like "$Val = 1000" but not by using something like "$DP = ReadProfileString("filename","section","key")"

Any takers?