|
-
May 29th, 2000, 11:25 PM
#1
Thread Starter
Lively Member
Hi,
I'm changing some code a friend wrote for me. Unfortunately she's gone to Spain. She wrote the code with a picture box in mind, but I'm changing it to a textbox - makes more sense.
In a command button I have:
Command1_Click()
Text1 = "We are being asked to find the value of 'x'." & _
"Firstly, we have to tidy up the left side of the equation,"
qShow
End sub
This then calls the function, qShow
It works fine for the code as a Picturebox:
Sub qShow()
If b < 0 Then Pictext.Print Trim$(a); "(x" & Trim$(b) & ")" _ Else: Pictext.Print Trim$(a); "(x+"; Trim$(b); ")"
End Sub
But if I change Pictext.Print to Text1.Text, I get the following error:
Compile Error: Expected: End of Statement, and ";" is highlighted. Could someone please tell me how to sort this out?
Thanks a lot!
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
|