Results 1 to 5 of 5

Thread: using parameters in Visual basic studio 6.0

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

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

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

  4. #4
    Join Date
    Jan 2008
    Posts
    1,521

    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.

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

Similar Threads

  1. Replies: 2
    Last Post: 16-02-2011, 02:49 PM
  2. Compare Visual Studio 2010 and Visual Web Developer Express
    By Zacharia in forum Software Development
    Replies: 5
    Last Post: 28-01-2010, 04:27 AM
  3. Difference between Visual studio 2005 and Visual studio 2008
    By RohanS in forum Software Development
    Replies: 3
    Last Post: 12-06-2009, 10:48 AM
  4. Visual Basic 2005 or Visual Basic 6
    By Aasha in forum Software Development
    Replies: 5
    Last Post: 15-01-2009, 06:56 PM
  5. Declarative Parameters in Visual C#
    By Gyan Guru in forum Guides & Tutorials
    Replies: 3
    Last Post: 15-11-2008, 01:13 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,751,853,413.07027 seconds with 16 queries