Correct, except that you can't use an integer. You have to use a reference to an integer variable as described in my post a little further down in this thread.