programing of visual basic 6.0 plz help me

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • manglam1234
    New Member
    • Sep 2020
    • 1

    programing of visual basic 6.0 plz help me

    write a program to print day of week name using select case in visual basic 6.0




    I have tried this many times but did't got my answer plz help me
  • Otekpo Emmanuel
    New Member
    • Dec 2013
    • 23

    #2
    I think you have to be more elaborative. Maybe no one or probably just me did not understand what question is all about.

    Comment

    • SwissProgrammer
      New Member
      • Jun 2020
      • 220

      #3
      VB6 has been around a long time. It is the last secure Rapid Application Development (RAD) that Microsoft produced that I know of (use service pack 5 and not a later service pack). It can do almost everything that C++ was able to do at that time. I say "almost" because I only know of one thing that it did not do (for me), and I used it a lot.

      Here is a little help with the select case part:

      Code:
      public function whatday(day as Integer) as String
         select case day
              case 1: whatday = "Sunday"
              case 2: whatday = "Monday"
              case 3: whatday = "Tuesday"
              case 4: whatday = "Wednesday"
              case 5: whatday = "Thursday"
              case 6: whatday = "Friday"
              case 7: whatday = "Saturday"
              case else: whatday = "Must use from 1 to 7."
         end select
      end function

      whatday(1) will return "Sunday"


      The following might help if you are a beginner at VB6.

      From vbnet.mvps.org:


      I found that in this list:
      VBnet provides Intermediate and Advanced Win32 API code for VB developers. Comprehensive Code, FAQ, Developers Resources & News, alphabetical API/Type/Constant/Method Index, along with the largest Visual Basic-related links list on the net.



      I found the mvps.org on this page with some other programming links:


      Hope that helps.

      Comment

      Working...