in vb6, you can declare a procedure with the static modifier. this causes every local variable within the procedure to be static and to retain its value between calls. in vb7, the static modifier is not supported in a function or sub statement. you must individually declare each local variable you want to be static.