vbGore Free Online RPG Engine

Revolutionizing Visual Basic ORPG Development
It is currently Sun May 19, 2013 2:54 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Run-Time error '424': Object required
PostPosted: Sat May 01, 2010 11:24 am 
Magic Eight Ball

Joined: Tue Apr 27, 2010 11:20 am
Posts: 8
Just started with VB6 (I've done some programming in java etc)

I can't seem to figure out my problem!

Image


Private Sub cmdtest_Click()

If ((txtuser.Text >= 0) And (txtuser.Text < 8)) Then
MsgBox "You are " & txtuser.Text & " so you are a baby!"

ElseIf ((txtuser.Text >= 8) And (txtuser.Text < 18)) Then
MsgBox "You are " & txtuser.Text & " so you are a teen!"

ElseIf ((txtuser.Text >= 18) And (textuser.Text < 40)) Then
MsgBox "You are " & txtuser.Text & " so you are an adult!"

ElseIf ((txtuser.Text >= 40) And (textuser.Text < 110)) Then
MsgBox "You are " & txtuser.Text & " so you are really old!"

ElseIf ((txtuser.Text >= 110) And (textuser.Text < 200)) Then
MsgBox "You are " & txtuser.Text & " so you are dead!"

End If

End Sub


Top
 Profile  
 
 Post subject: Re: Run-Time error '424': Object required
PostPosted: Sat May 01, 2010 11:31 am 
Magic Eight Ball

Joined: Tue Apr 27, 2010 11:20 am
Posts: 8
If anyone here has the will and the time to help me out now and then, please PM me your msn/skype. I'm eager to learn and I'm not naive enough like many to think you learn a entire programming language in a few hours.


Top
 Profile  
 
 Post subject: Re: Run-Time error '424': Object required
PostPosted: Sat May 01, 2010 3:04 pm 
Magic Eight Ball

Joined: Tue Apr 27, 2010 11:20 am
Posts: 8
Option Explicit was not on by default. I feel so dumb!

Problem solved.


Top
 Profile  
 
 Post subject: Re: Run-Time error '424': Object required
PostPosted: Sun May 02, 2010 3:46 am 
=^.^= Kitty =^.^=

Joined: Wed Mar 21, 2007 6:50 am
Posts: 1002
Location: Belgium
If you have done Java before I suggest you stay away from Visual Basic 6 and start learning C# which isn't a dead/unsupported language. The successor of vbGore, Netgore, is written in C# anyways.


Top
 Profile  
 
 Post subject: Re: Run-Time error '424': Object required
PostPosted: Mon May 03, 2010 1:46 am 
Magic Eight Ball

Joined: Tue Apr 27, 2010 11:20 am
Posts: 8
I don't like the whole "side scrolling" so no good for me!


Top
 Profile  
 
 Post subject: Re: Run-Time error '424': Object required
PostPosted: Mon May 03, 2010 11:45 am 
Wizard of Xor

Joined: Tue Mar 17, 2009 3:48 pm
Posts: 238
NetGORE can be turned from side scroller to top-down easily. In fact, there's a setting to change it.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group