Results 1 to 3 of 3

Thread: How do I clear a variables TYPE values?

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    15

    How do I clear a variables TYPE values?

    Hi, I have a large variable defined as a TYPE with approx 30 elements.

    Is there an easy way to clear all the values without going thru each one?

    Thanks

  2. #2
    Frenzied Member swatty's Avatar
    Join Date
    Aug 2002
    Location
    somewhere on earth
    Posts
    1,478
    Don't think so.
    If you declare a new variable of this type all will be cleared.

    If you are using one in a function and it needs to be cleared into this function i suggest you write a clear sub which clears all variables in your type. This should only be written once and can be called from anywhere in your app.
    Code:
    If Question = Incomplete Then
       AnswerNextOne
    Else
       ReplyIfKnown
    End If
    cu Swatty

  3. #3

    Thread Starter
    New Member
    Join Date
    Sep 2002
    Posts
    15
    Thanks swatty.

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