Posted on 2004-11-16
Last Modified: 2010-04-17
I use for formatting diff. variables  functions , they are declared on main form as public.
But calling one off thes functions from a other loaded form are not seen.
For now I just added the function again to next form in program.
Is it possible to make them 'sharable' to other forms  ??
In old 'dos' programs I could  read them while compling as include files,
so one time update if needed in a include file , all programs gets new file during compile,
now I have to update all the forms if we update a function sometimes.

How to get this (like dos) more efficient??

Regards Jack
Question by:BIAPRO
    LVL 48

    Expert Comment

    what language?

    Author Comment

    sorry, VB6
    LVL 48

    Accepted Solution

    for example


    Public Function Hi(strhi as string) as string
       hi = "hi " & strhi
    end function


    msgbox form1.hi("mike")

    this doesnt work?

    Author Comment

    yes, perfect, thanks!

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Suggested Solutions

    This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
    This is an explanation of a simple data model to help parse a JSON feed
    In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now