Results 1 to 2 of 2

Thread: Creating Variables dynamically

  1. #1
    Guest
    I need to create my variables at runtime (and I can't use an array). Is it even possible??
    Thanks for ANY help

  2. #2
    Guest

    Unhappy How do you mean..............

    Something like

    Code:
    Dim A as Integer
    Dim B as Integer
    '
    ' Code code code code
    '
    If A = B Then Dim C As Integer
    I don't think this is a possibility. Why caren't you use arrays then you could ReDim Preserve

    Declaration of variables simply saves space in memory for their value and updates a pointer to theat space in memory. Could maybe try without an Option Explicit but would still need to write Variable Names into the code.

    More explanation please of what you are trying to achieve.

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