472,143 Members | 1,642 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,143 software developers and data experts.

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
Sep 18 '20 #1
2 2024
I think you have to be more elaborative. Maybe no one or probably just me did not understand what question is all about.
Sep 18 '20 #2
220 128KB
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:

Expand|Select|Wrap|Line Numbers
  1. public function whatday(day as Integer) as String
  2.    select case day
  3.         case 1: whatday = "Sunday"
  4.         case 2: whatday = "Monday"
  5.         case 3: whatday = "Tuesday"
  6.         case 4: whatday = "Wednesday"
  7.         case 5: whatday = "Thursday"
  8.         case 6: whatday = "Friday"
  9.         case 7: whatday = "Saturday"
  10.         case else: whatday = "Must use from 1 to 7."
  11.    end select
  12. 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:

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

Hope that helps.
Sep 22 '20 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by pix | last post: by
2 posts views Thread by frossberg | last post: by
1 post views Thread by Martin Racette | last post: by
97 posts views Thread by Master Programmer | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.