473,387 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 2170
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
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   
  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

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

Similar topics

3
by: pix | last post by:
Hello, I would like to start learning Visual Basic, and I was wondering if there are any recomendations to any ebooks, or actual books for that matter. I have my eye on this book by John Smiley,...
2
by: AK | last post by:
I don't want any part of the previous discussion on Visual Basic versus Visual Basic.Net. My query is about using Visual Basic for Applications; and whether it is better to use Visual Basic 6 or...
2
by: Ralph | last post by:
I used to have Visual Basic .net std. 2003 installed on WinXP SP1A. But I found it too hard to upgrade WinXP to SP2. Now, I do have WinXP SP2 installed, but I am having problems installing...
2
by: frossberg | last post by:
Hello! I tried to install the Visual Basic.NET Resource Kit (http://msdn.microsoft.com/vbasic/vbrkit/) but obviously something went very wrong and now it sems impossible both to repair and to...
1
by: Martin Racette | last post by:
Hi, I recently installed that programing environment, and I'm wondering how to do some of the things I created a program that renames, moves, and copies file, most of the routine are located...
1
by: perse981 | last post by:
I am new to programing so i'll apologize in advance. I need to create a program in visual basic 6.0 in which the user can control the size of a cicle using the arrow keys. I then need to record...
4
by: sqlguy | last post by:
Why do we have to contact MS for a problem that has been with this compiler from at least the beta of VS 20005. I am so sick and tired of the 30 - 40 clicks it takes to dismiss VS when there is a...
97
by: Master Programmer | last post by:
An friend insider told me that VB is to be killled off within 18 months. I guess this makes sence now that C# is here. I believe it and am actualy surprised they ever even included it in VS 2003 in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.