[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 169
  • Last Modified:

SHARING FUNCTIONS IN FORMS

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
0
BIAPRO
Asked:
BIAPRO
  • 2
  • 2
1 Solution
 
Mikal613Commented:
what language?
0
 
BIAPROAuthor Commented:
sorry, VB6
0
 
Mikal613Commented:
for example


Form1
---------

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


form2
------

msgbox form1.hi("mike")


this doesnt work?
0
 
BIAPROAuthor Commented:
yes, perfect, thanks!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now