Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find origin of a variable or function in a large visual basic project

Tags:

vb6

I have large visual basic 6 project with 50 forms and many modules. When i open a form i found some variables/functions used in that form is not originated there. Then how can i find out where it is first written without going through all codes.

Thank you.

like image 548
user604429 Avatar asked Dec 09 '22 00:12

user604429


2 Answers

Open the project in the IDE. Find an occurrence of the variable, function, etc. of interest, right-click and choose Definition. This should take you there.

like image 123
Bob77 Avatar answered Apr 29 '23 01:04

Bob77


The Goto definition SHIFT + F2 is what I use when working in a smaller project. However, if you want some real power, download and install MZ Tools or Agent Ransack. I personally use MZ Tools and it has some fantastic features for VB6 such as finding occurrences of variables, methods, etc plus a plethora more features that I know you'll find extremely useful.

MZ Tools is also free for use and you can donate if you wish.

like image 27
Warren Rox Avatar answered Apr 29 '23 02:04

Warren Rox