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:
- 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:
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.