Debug- Run Specific Sub - VB6

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums - DaniWeb Sister Site
Thread Solved

Join Date: Jan 2008
Posts: 56
Reputation: Tekito is an unknown quantity at this point 
Solved Threads: 0
Tekito Tekito is offline Offline
Junior Poster in Training

Debug- Run Specific Sub - VB6

 
0
  #1
Oct 7th, 2008
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?
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,106
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 128
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: Debug- Run Specific Sub - VB6

 
0
  #2
Oct 8th, 2008
any ways you have to run the application . you can always call a specific sub on a button click for testing.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 56
Reputation: Tekito is an unknown quantity at this point 
Solved Threads: 0
Tekito Tekito is offline Offline
Junior Poster in Training

Re: Debug- Run Specific Sub - VB6

 
0
  #3
Oct 8th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2007
Posts: 2,106
Reputation: debasisdas will become famous soon enough debasisdas will become famous soon enough 
Solved Threads: 128
debasisdas's Avatar
debasisdas debasisdas is offline Offline
Postaholic

Re: Debug- Run Specific Sub - VB6

 
1
  #4
Oct 8th, 2008
that is because VBA is used to define macros notto compile an EXE or DLL.
Share your Knowledge.
Reply With Quote Quick reply to this message  
Join Date: Jan 2008
Posts: 56
Reputation: Tekito is an unknown quantity at this point 
Solved Threads: 0
Tekito Tekito is offline Offline
Junior Poster in Training

Re: Debug- Run Specific Sub - VB6

 
0
  #5
Oct 8th, 2008
I suppose that makes sense.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the Visual Basic 4 / 5 / 6 Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC