By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
463,146 Members | 545 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 463,146 IT Pros & Developers. It's quick & easy.

programing of visual basic 6.0 plz help me

P: 1
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
Share this Question
Share on Google+
2 Replies

P: 23
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

SwissProgrammer
100+
P: 106
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   
  13.  

whatday(1) will return "Sunday"


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

From vbnet.mvps.org:
http://vbnet.mvps.org/index.html?cod...eekdayname.htm

I found that in this list:
http://vbnet.mvps.org/code/main/contents.html


I found the mvps.org on this page with some other programming links:
http://www.standardgalactic.com/sear...e_Internet.htm

Hope that helps.
Sep 22 '20 #3

Post your reply

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