I tried your snippet in a VB6 form, and it ran without error.