Results 1 to 2 of 2
  1. #1
    Join Date
    Nov 2003
    Location
    Europe
    Posts
    369

    Question Unanswered: Emptying a public / global variable

    This feels a bit awkward or embarrassing, but what is the correct way of emptying/setting a global variable like:

    Public gid_buy As Long

    to zero: zero, null, nothing, etc.?

    I try
    gid_buy = nothing
    gid_buy = 0
    gid_buy = ""

    but it is not accepted...

  2. #2
    Join Date
    Jan 2004
    Location
    Islamabad, Pakistan
    Posts
    97
    At what point of execution of the program you're trying to empty it. I mean check wheather the event or procedure where you're trying to empty it does or deosn't execute at all? otherwise the both

    set gid_buy = nothing

    or

    gig_buy = 0

    should work. but where? is the question I mean if these statements execute at all?

    - Saqib

Posting Permissions

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