by default VB passes arguments/parameters by reference ( you can also make this explicit if you want, which is a good idea for maintainance ), anything you do to the var in your function will directly alter the one you passed in - they are pointing to the same piece of memory,