Results 1 to 5 of 5

Thread: Change variable from module

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Change variable from module

    Hi,

    Help me with this please,
    How to execute procedure on FORM from MODULE (bas file) and how to change variable on FORM from MODULE

    Thanks

  2. #2
    Oi, fat-rag! bushmobile's Avatar
    Join Date
    Mar 2004
    Location
    on the poop deck
    Posts
    5,592

    Re: Change variable from module

    VB Code:
    1. FormName.ProcedureName(Arguments)
    2.  
    3. FormName.VariableName = Value
    The sub / function / variables need to be declared publicly.

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: Change variable from module

    hi bushmobile

    Love to hear from you again

    bushmobile,
    my FORM are MDIChild and on the procedure change some control on the FORM.

    using -- FormName.ProcedureName(Arguments) -- raise up an error -- object or variable not set --

    How is that bush?

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

    Re: Change variable from module

    procedure should be public

    pete

  5. #5

    Thread Starter
    Addicted Member
    Join Date
    Nov 2005
    Posts
    145

    Re: Change variable from module

    public it is

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