Results 1 to 5 of 5

Thread: Using Arrays [resolved]

Hybrid View

  1. #1
    PowerPoster
    Join Date
    Dec 2003
    Location
    Bristol, England (but heart is in Virginia)
    Posts
    2,949

    Re: Using Arrays

    Hi,

    Surely if you are using two forms then the following declaration should be global???

    Dim LPEditProp As New frmLPEditProp


    Where have you declared it anyway?
    Taxes
    The more I learn about VB.NET the more I like dBaseIII Plus

    The foregoing, whilst believed to be correct, is given without guarantee as to it's accuracy and entirely without recourse. You are required to decide for yourself whether or not it is suitable for your purposes and no liability for loss of any nature can be entertained.

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2005
    Posts
    384

    Talking Re: Using Arrays

    Quote Originally Posted by taxes
    Hi,

    Surely if you are using two forms then the following declaration should be global???

    Dim LPEditProp As New frmLPEditProp


    Where have you declared it anyway?
    Hello, thanx for the advice, but the form's declaration doesn't necessary have to be global (because the second form won't always be open)
    I have managed to resolve my issue, you see, I used classes to create control arrays - The problem was that everything was stored into only one location of the array, so I redimmed the array and in the control array's class's event handler, I set the counter variable to the class' Index value, tested about 25 now, and it gives me my desired results everytime.

    Thanx everyone for your input.
    I'm getting good at this!

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