|
-
Aug 20th, 2000, 04:01 PM
#1
Thread Starter
Hyperactive Member
In my pong game when the ballhits a ball I have it call a public sub routine but when i say picball.move picball.left + 20 it gives me a error object required. Does the module not see the picball object? Thanks
Matt 
-
Aug 20th, 2000, 04:11 PM
#2
Frenzied Member
Is picBox a picturebox?
If so the module won't see it directly
you need to specify what form it's on, If it's on form1 you need
Code:
Form1.picBall.Move Form1.picBall.Left + 20
-
Aug 21st, 2000, 03:18 AM
#3
transcendental analytic
Ànother thing you could do is to pass the picturebox reference:
Code:
Sub Yoursubwhateveryouhadinthatmodule(picball as picturebox)
picBall.Move picBall.Left + 20
End sub
Use  
writing software in C++ is like driving rivets into steel beam with a toothpick.
writing haskell makes your life easier:
reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.
-
Aug 21st, 2000, 12:29 PM
#4
Thread Starter
Hyperactive Member
great!
Thanks both ways work like a charm!
Matt 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|