|
-
May 25th, 2000, 05:06 PM
#1
Thread Starter
Lively Member
Hi,
I have 3 lines on my form - linemove, line1 and line2. I also have a text box and a command button.
The user can enter the number 1 or 2 into the text box. When they click the command button, the coordinates of linemove should match those exactly of line1 or line2 - depending on what number they have typed in the text box.
I thought this code would work, but it doesn't:
Private Sub Cmdchange_Click()
Linemove.X1 = Line & Str(Text1.Text).X1
Linemove.X2 = Line & Str(Text1.Text).X2
Linemove.Y1 = Line & Str(Text1.Text).Y1
Linemove.Y2 = Line & Str(Text1.Text).Y2
End Sub
I get an error and 'Line' is highlighted. Could someone please help me out?
Thanks.
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
|