Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 19-11-2009
Member
 
Join Date: Nov 2009
Location: Within'
Posts: 3
using parameters in Visual basic studio 6.0

Hi everyone.

I've got this software i was on with, i created the reports and from the reports i can print the whole document as a whole.the system itself is supposed to handle reports from 60 different locations which are handed in monthly.my problem is that if i want to print data from a specific location within a certain period is difficult for me since i dont know the codes to do that and also printing a report for a certain year.

i wanted to have two command buttons one for print monthly reports which when i click prompts me of the location i want to print and from which month..like wise for the yearly reports.

thanks.
Reply With Quote
  #2  
Old 19-11-2009
Member
 
Join Date: Jul 2009
Posts: 52
Re: using parameters in Visual basic studio 6.0

Hi
If I am correct you want to have two buttons one for printing monthly report and the other for yearly report. You have the use the calender tool to do this, but at-least you have to code some part of it. If you just want simple reports you can directly use it, but your need is little high. So you have to code some part of that.
Reply With Quote
  #3  
Old 19-11-2009
Member
 
Join Date: Nov 2009
Location: Within'
Posts: 3
Re: using parameters in Visual basic studio 6.0

Quote:
Originally Posted by MobilePhoneGuru View Post
Hi
If I am correct you want to have two buttons one for printing monthly report and the other for yearly report. You have the use the calender tool to do this, but at-least you have to code some part of it. If you just want simple reports you can directly use it, but your need is little high. So you have to code some part of that.
thats exactly what i need...let me try it out and would you be having the codes that i might need after the calender tool?
thanks.
Reply With Quote
  #4  
Old 20-11-2009
Member
 
Join Date: Jan 2008
Posts: 1,515
Re: using parameters in Visual basic studio 6.0

The Visual Studio package is the best that you can find out there. In Visual Basic 6.0, if you do not specify ByVal or ByRef for a procedure parameter, the passing mechanism defaults to ByRef. This allows the variable passed into the procedure to be modified in the calling program. Assuming it is, there might be another thing you need to change. Let say for example "abc" and "bcd" are string variables. Then using Shell "n:\aa.bat abc bcd" passes the values "abc" and "bcd" to the batch file. Using Shell "n:\aa.bat " & abc & " " & bcd passes the contents of abc and bcd to the batch file instead. You may need to change this in your code.
Reply With Quote
  #5  
Old 20-11-2009
Member
 
Join Date: Nov 2009
Location: Within'
Posts: 3
Re: using parameters in Visual basic studio 6.0

Quote:
Originally Posted by Modifier View Post
The Visual Studio package is the best that you can find out there. In Visual Basic 6.0, if you do not specify ByVal or ByRef for a procedure parameter, the passing mechanism defaults to ByRef. This allows the variable passed into the procedure to be modified in the calling program. Assuming it is, there might be another thing you need to change. Let say for example "abc" and "bcd" are string variables. Then using Shell "n:\aa.bat abc bcd" passes the values "abc" and "bcd" to the batch file. Using Shell "n:\aa.bat " & abc & " " & bcd passes the contents of abc and bcd to the batch file instead. You may need to change this in your code.
can you outline just how everything should go if you dont mind...that thang be eating my head as hell...

thanks
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "using parameters in Visual basic studio 6.0"
Thread Thread Starter Forum Replies Last Post
Visual Studio 2010: features and changes compared to Visual Studio 2008 BinDs14 Guides & Tutorials 2 16-02-2011 02:49 PM
Compare Visual Studio 2010 and Visual Web Developer Express Zacharia Software Development 5 28-01-2010 04:27 AM
Difference between Visual studio 2005 and Visual studio 2008 RohanS Software Development 3 12-06-2009 10:48 AM
Visual Basic 2005 or Visual Basic 6 Aasha Software Development 5 15-01-2009 06:56 PM
Declarative Parameters in Visual C# Gyan Guru Guides & Tutorials 3 15-11-2008 01:13 PM


All times are GMT +5.5. The time now is 09:55 AM.