Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Programming in VB 2008
Story Teller Offline
Passionate Artist
*****

Posts: 1,989
Threads: 182
Joined: May 2009
#1
Programming in VB 2008
so~ I need some programming help in VB 2008

Here is what I was doing in the program:

1. I made a combobox to get the location and phone number in a notepad named "Resources.txt"

IE:???? Museum Metro
???????? 604-111-9999
???????? 1???????????????????????????? <<<<No. of staff
???????? 3???????????????????????????? <<<<No. of tourist
???????? B???????????????????????????? <<<<B opens in the morning
???????? Gargoyle Rock
???????? 604-333-5555
???????? 2
???????? 5
???????? A????????????????????????????<<<<A means it opens at midnight

the combobox selections have something that displays like "Museum Metro 604-111-9999" (already finished)

2. I then made a listbox which copies the display in the combobox. (done)

3. Now I need to put the other informations from the "Resources.txt"
into Textboxes but since I made the variables into an array(which are universal in the program), I couldn't just put them inside it since it the array changes when you pick Museum Metro or Gargoyle Rock. Also I can't put the array in the textbox since its not a string and that it's an array as specified (having a hard time discovering)

I don't know if anyone actually knows of programming stuff but I think I need something like

For icount = 1 to 15
?????? strPhone = strPhoneNum (or something like that.....)

I don't actually know how to make this thing work but I need to get the phone number which is displayed into the combobox and then use it to find the other things in the "Resources.txt" into textboxes as well.

Mad

EDIT: ever wonder why I don't draw that much? It because of this stuff >>
[Image: tumblr_ny8egaizy41ugfaiio1_500.gif]
(This post was last modified: 11-04-2009, 08:51 PM by Story Teller.)
11-04-2009, 08:47 PM
Find Reply
Général_Argos Offline
Removed by GM
*****

Posts: 3,012
Threads: 144
Joined: Jan 2006
#2
RE: Programming in VB 2008
I'll be the douchebag of the thread and say "Why don't you use a REAL programming language?"
IGN: 9000KRIM Alts:  Morradin, KRIMSTEAL
Banned: Krimlin, Krimlogas, Lord_Krimlogas, General_Argos
Krim's grocery list

¯_¯_¯_¯_¯_¯_¯_¯_¯_¯_¯_¯_¯_-KRIMLIN-¯_¯_¯_¯_¯_¯_¯_¯_¯_¯_¯_¯_¯_¯/
Murphy law.  The only true one.  
[Image: krimstyleg.jpg]
(This post was last modified: 11-05-2009, 12:56 PM by Général_Argos.)
11-05-2009, 12:53 PM
Find Reply
hiropyro Offline
~insert witty phrase here~
****

Posts: 254
Threads: 34
Joined: Aug 2008
#3
RE:??Programming in VB 2008
G?n?ral_Argos Wrote:I'll be the douchebag of the thread and say "Why don't you use a REAL programming language?"
glad you where the douchebag ;P allthough VB is a very powerful programming language for beginners. It teaches you the basics of programming in an easy manner. ;P

And sorry story I can not remember much VB, xD than again I never knew very much.
[Image: sigp.gif]
11-05-2009, 02:44 PM
Find Reply
azurerogue Offline
One Dogma: THROW AD!
*****

Posts: 2,408
Threads: 104
Joined: Aug 2007
#4
RE:??Programming in VB 2008
G?n?ral_Argos Wrote:I'll be the douchebag of the thread and say "Why don't you use a REAL programming language?"

[Image: real_programmers.png]

EDIT: As for help, sorry, I don't remember much from my VB days.
- Albus Dumbledore 99/70 Professor - Albus DumbIedore 92/59 Professor
- AIbus Dumbledore 93/50 Wizard - AIbus DumbIedore 1/1 Novice
- Astaroth 99/70 Creator - Dawkins 99/70 Creator
- Exemplar 98/69 Paladin - Equitas 80/47 Paladin
- Mephistopheles 95/65 Lord Knight - Shogo Kawada 97/67 Stalker
(This post was last modified: 11-05-2009, 03:56 PM by azurerogue.)
11-05-2009, 03:55 PM
Find Reply
Story Teller Offline
Passionate Artist
*****

Posts: 1,989
Threads: 182
Joined: May 2009
#5
RE: Programming in VB 2008
I was "specifically" asked to use this program if you guys are going to tell me why I am using VB 2008. If you want me to post the coding I did for this one then I can post it.
[Image: tumblr_ny8egaizy41ugfaiio1_500.gif]
11-05-2009, 06:04 PM
Find Reply
hiropyro Offline
~insert witty phrase here~
****

Posts: 254
Threads: 34
Joined: Aug 2008
#6
RE: Programming in VB 2008
@story
If you post your coding I may get triggered mentally. And remember something but doubt it XD
[Image: sigp.gif]
11-06-2009, 01:31 AM
Find Reply
Story Teller Offline
Passionate Artist
*****

Posts: 1,989
Threads: 182
Joined: May 2009
#7
RE: Programming in VB 2008
Ok, just to update you guys. I am almost done programming this thing. The only problem is that I need some help on how to remove the time in the date.

here is the code I tried using:

Dim strCheckIn As Date = CDate(FormatDateTime(CDate(txtCheckInDate.Text)))

What appears in the listbox I made is:

20/11/2008 12:00:00 AM

My Problem: How the hell do I get that 12:00:00 AM out of there Mad

[Image: tumblr_ny8egaizy41ugfaiio1_500.gif]
(This post was last modified: 11-12-2009, 12:39 AM by Story Teller.)
11-12-2009, 12:38 AM
Find Reply
Story Teller Offline
Passionate Artist
*****

Posts: 1,989
Threads: 182
Joined: May 2009
#8
RE: Programming in VB 2008
HOMEWORK COMPLETE >:D

it seems like i had an overflow of data in the date that's why it didn't work. :D
[Image: tumblr_ny8egaizy41ugfaiio1_500.gif]
(This post was last modified: 11-12-2009, 03:16 AM by Story Teller.)
11-12-2009, 03:16 AM
Find Reply


Forum Jump: