Results 1 to 2 of 2

Thread: how can i initialize a SUB in another private sub???

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2004
    Posts
    12

    how can i initialize a SUB in another private sub???

    i programmed private sub btnDatenAnzeigen_Click
    and it became too long because when i compiled it the compiler said "Sub or Function too long"

    so i created another sub, but how can i initialize it in the other sub??

    please help me

    thx, alex

  2. #2
    Don't Panic! Ecniv's Avatar
    Join Date
    Nov 2000
    Location
    Amsterdam...
    Posts
    5,343

    Re: how can i initialize a SUB in another private sub???

    Originally posted by alexschiefert
    VB Code:
    1. private sub btnDatenAnzeigen_Click
    2.     other_half
    3. end sub
    4.  
    5. private  sub other_half()
    6. '---- other half
    7. end sub
    Or recode your code to make it smaller (loops etc)


    Vince

    BOFH Now, BOFH Past, Information on duplicates

    Feeling like a fly on the inside of a closed window (Thunk!)
    If I post a lot, it is because I am bored at work! ;D Or stuck...
    * Anything I post can be only my opinion. Advice etc is up to you to persue...

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