Results 1 to 2 of 2

Thread: Scoping problems

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Feb 2000
    Location
    Glasgow, Scotland
    Posts
    71
    Can anyone help,

    I have declared a private variable at the top of the code section of a form. I am unloading the form and then loading it again. When I reload the form the variable is retaining the value which I give it before the unload. Why is the variable not being initialized when I reload.

    Thanks for any help,


    Chris

  2. #2
    Fanatic Member Stevie's Avatar
    Join Date
    Mar 2000
    Location
    London, UK
    Posts
    565
    Not sure if this will help, but are you setting the form = nothing when you unload it?
    If that doesn't help, why not just initialise it in the Load event?

    [Edited by Stevie on 04-10-2000 at 05:58 PM]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width