How do i call a subroutine from another form?

Re: Subroutines 80 80

can u explain the thread wht u have plz

Re: Subroutines 80 80

Lets say the sub is in Form2 and it must be called via Form1. Declare the sub in Form2 as Public. To call it via Form1, write this code in Form1: Call Form2.Subname where Subname is the name of the sub >.>

Re: Subroutines 80 80

Lets say the sub is in Form2 and it must be called via Form1. Declare the sub in Form2 as Public. To call it via Form1, write this code in Form1: Call Form2.Subname where Subname is the name of the sub >.>

thank you so much. it works.

Re: Subroutines 80 80

Just use the fully qualified name.

Subroutine should have global scope.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.18 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.