Computer Forums

Member Login

Remember Me? Sign Up! | Forgot Password
 
Slogan
 
Computer Forums > Programmers Lounge > Programming Discussions » whats wrong with my code, VB
Closed Thread
Old 04-23-2006, 12:21 PM   #1 (permalink)
ibexpiotr's Avatar
 
True Techie

Join Date: Nov 2003

Posts: 198

ibexpiotr is on a distinguished road

Send a message via AIM to ibexpiotr
Default whats wrong with my code, VB

my struct
Structure tridata
Public pts() As Point
Public tcolor As Color
End Structure

----------------------------------
and the loop where it breaks

For x = 0 To x = 5
For i = 0 To 2
triangles(x).pts(i).X = 1 + Int(Rnd() * Form1.ActiveForm.Width)
triangles(x).pts(i).Y = 1 + Int(Rnd() * Form1.ActiveForm.Height)
Next i

Next x
ibexpiotr 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