This is what you get with SysEnvironment() in WX16:
res is string = SysEnvironment( "temp" )
//res results in "temp=C:\temp"
I vote for an additional parameter like this, to leave out the identifier in the result string:
res is string = SysEnvironment("temp",false) -> "C:\temp"
Sebastian