Results 1 to 2 of 2
  1. #1
    Silver Lounger
    Join Date
    Jun 2001
    Location
    Niagara Falls, New York, USA
    Posts
    1,878
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Variable getting Cleared? (A2k (9.0.3821) SR-1)

    Variable getting Cleared?

    A2k (9.0.3821) SR-1

    I have a variable defined as

    Private mstrEditEntryFormName As String

    In the Form_Open event I have:

    mstrEditEntryFormName = "frm_BP_Manual_Entry"

    When debugging the form I received a RT error and selected End

    I then tried to click the button that opens mstrEditEntryFormName and received the following message:

    This action or method requires a form name argument. OK

    It looks like the error cleared the variable. Is this normal behavior?

    Besides closing and reopening the form and making the form bullet proof, what other techniques do programmers use to preserve and/or refresh cleared variables.

    Thanks, John

  2. #2
    Gold Lounger
    Join Date
    Feb 2001
    Location
    Sint Niklaas, Belgium
    Posts
    2,778
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Variable getting Cleared? (A2k (9.0.3821) SR-1)

    When you get the error end select End the all variables are cleared.
    To look at the variables, select Debug.
    There will be a yellow line where the error happens and all the variables will have there values.
    Francois

Posting Permissions

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