Results 1 to 5 of 5

Thread: [RESOLVED] call sub

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    Resolved [RESOLVED] call sub

    how can i get this to work

    Code:
    Call frmDesktop.RenewCaptions
    RenewCaptions is a sub with some code in to renew the captions of buttons

    how can i call it from another form.

    thanks in advance chris1990
    If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.

    If you fail, try and try again, its the only way to success.

  2. #2
    PowerPoster
    Join Date
    Oct 2002
    Location
    British Columbia
    Posts
    9,758

    Re: call sub

    Call frmDesktop.RenewCaptions

    That's it. Just make sure RenewCaptions is a Public procedure.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Sep 2006
    Location
    Greater Manchester, UK
    Posts
    476

    Re: call sub

    do i change it from public sub to public procedure
    If your question is answered then mark your thread RESOLVED and give credit to whoever answered it.

    If you fail, try and try again, its the only way to success.

  4. #4
    VB6, XHTML & CSS hobbyist Merri's Avatar
    Join Date
    Oct 2002
    Location
    Finland
    Posts
    6,654

    Re: [RESOLVED] call sub

    Sub = procedure
    Function = procedure
    Property = procedure

    So no, you don't change that

  5. #5

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