Huh?

Wahts all that code for?

Just add the var to the integer instead of the other way around.

$Data = 1 + ReadProfileString('bla','bla','bla')

If you start with an integer, KiX will convert the rest for you. The inverse is also true.
Code:
Break On
$str = "1"
$int = 1

$strResult = $str + $int
'Result = '+ $strResult + ' is ' + VarTypeName($strResult) ?

$intResult = $int + $str
'Result = '+ $intResult + ' is ' + VarTypeName($intResult) ?


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.