473,240 Members | 1,625 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,240 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 2161
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...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
Git
by: egorbl4 | last post by:
Скачал я git, хотел начать настройку, а там вылезло вот это Что это? Что мне с этим делать? ...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...

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.