Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Closed Thread
Old 03-31-2004, 12:14 PM   #1 (permalink)
 
Newb Techie

Join Date: Mar 2004

Posts: 6

VBChallenged

Default Hangman Game need help

right now i'm having trouble loading my alphabet by using a control array. i was given this code to use and it still isn't working right. If anyone could help me find where the problem is i would greatly appreciate it.

for i = 1 to 25
load lblAlphabet(i)
lblAlphabet(i).left = lblAlphabet(i).left + i * conLeftC
lblAlphabet(i).caption = Mid(strAlpha, i + 1, 1)
lblAlphabet(i).visible = true
next i

(conLeftC = 270 in your general decleration)
(strAlpha = "abcdefghijklmnopqrstuvwxyz" in general declaration)
VBChallenged is offline  
Old 03-31-2004, 08:23 PM   #2 (permalink)
 
Monster Techie

Join Date: Jul 2003

Posts: 1,179

Emily is on a distinguished road

Send a message via AIM to Emily
Default

How is it not working? If it's not loading anything at all, do you have lblAlphabet(0) loaded at design time?
__________________
<a href=\"http://www.upstark.com\">www.upstark.com</a>
Emily is offline  
Old 04-01-2004, 12:39 PM   #3 (permalink)
 
Newb Techie

Join Date: Mar 2004

Posts: 6

VBChallenged

Default

The labels wern't spacing out right and were just being placed underneath one another. I added...

lblAlphabet(i).left = lblAlphabet(i).left + lblAlphabet(i).left
to my code and now it works fine.

Thank you for you reply though.
VBChallenged is offline  
Old 05-19-2004, 12:10 PM   #4 (permalink)
 
Newb Techie

Join Date: May 2004

Posts: 18

MiGiT128

Default

i made a hangman game.

that was one of the first things that i ever did. it really teaches you a lot about some of the commands and how they work
MiGiT128 is offline  
 
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On