How do i call a subroutine from another form?

Recommended Answers

All 4 Replies

can u explain the thread wht u have plz

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 >.>

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.

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 developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.