943,918 Members | Top Members by Rank

Ad:
Oct 7th, 2008
0

Debug- Run Specific Sub - VB6

Expand Post »
Most of my Visual Basic 6 experience comes from VBA with Excel. With VBExcel, you can run any procedure (if it does not require input parameters) by simply putting your cursor in the sub and clicking the "play button" (F5) . With full VB6, the same action will not just run a specific sub, instead it starts at the very beginning (Sub Main or whatever). For large projects, I want to be able to test certain subs without having to start at the beginning every time. How can I do in VB6 what I do in VBExcel? Or are later versions of VB better at this?
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Tekito is offline Offline
56 posts
since Jan 2008
Oct 8th, 2008
0

Re: Debug- Run Specific Sub - VB6

any ways you have to run the application . you can always call a specific sub on a button click for testing.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Oct 8th, 2008
0

Re: Debug- Run Specific Sub - VB6

I suppose there are easy ways around it, as you mentioned. Even so, I find it surprising that VBA has this convenient feature, while full VB6 does not.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Tekito is offline Offline
56 posts
since Jan 2008
Oct 8th, 2008
1

Re: Debug- Run Specific Sub - VB6

that is because VBA is used to define macros notto compile an EXE or DLL.
Featured Poster
Reputation Points: 665
Solved Threads: 427
Posting Genius
debasisdas is offline Offline
6,406 posts
since Feb 2007
Oct 8th, 2008
0

Re: Debug- Run Specific Sub - VB6

I suppose that makes sense.
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
Tekito is offline Offline
56 posts
since Jan 2008

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Check if file is open in VB6
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: collect data from datagrid





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC