hi, I'm trying to get something like this to work sub test(strConstant as string) MsgBox aPref.GetString(strConstant) end sub where it's expecting strConstant to be an integer any ideas? thx