Results 1 to 7 of 7

Thread: newbie needs help with arrays

  1. #1

    Thread Starter
    New Member
    Join Date
    Aug 2007
    Posts
    3

    Post newbie needs help with arrays

    okay well i have information that a user enters into a textbox. this information then gets placed into an array. i want the user to be able to search with this information and i want the user to view the file which will be saved as a text file. is there any way i can connect the arrays and make then easy to access later with a search?

  2. #2
    Frenzied Member
    Join Date
    Feb 2003
    Location
    Argentina
    Posts
    1,950

    Re: newbie needs help with arrays

    The start to the answer to your question is here.
    Tengo mas preguntas que contestas

  3. #3
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: newbie needs help with arrays

    i do not understand the question
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  4. #4

    Thread Starter
    New Member
    Join Date
    Aug 2007
    Posts
    3

    WORD newbie needs help with arrays

    i want to enter information on a group of members but the thing is i dont know how big it will be. so i want to use a seperate array for all the bits of information i will collect like address and then connect them together. is there any way or pairing or connecting all of these seperate arrays?

  5. #5
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: newbie needs help with arrays

    maybe you should look at a UDT (user defined type), which can hold all the information in each element

    do a search on declaring and using UDT
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  6. #6

    Thread Starter
    New Member
    Join Date
    Aug 2007
    Posts
    3

    Re: newbie needs help with arrays

    isnt that more a VB thing then a VBA thing? i looked it up but i found it on a VB site? and it says it cant be used within a procedure? either way is it the same thing as a multi-dimensional array?

  7. #7
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: newbie needs help with arrays

    similar to a multidimentional array, but more convenient to use,
    i believe a UDT can be used in VBA, you have to declare it in the general section of the module, not within a proceedure, but then you can use it within any proceedures, depending on the scope you declare it (public or private)
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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