|
-
Sep 8th, 2000, 07:22 AM
#1
Thread Starter
Hyperactive Member
Hello again!
I'm trying to shorten this code:
If firstofsequence(1) = secondofsequence(1) Then
Picture1.Print firstofsequence(1) & ",";
End If
If firstofsequence(1) = secondofsequence(2) Then
Picture1.Print firstofsequence(1) & ",";
End If
If firstofsequence(1) = secondofsequence(3) Then
Picture1.Print firstofsequence(1) & ",";
End If
If firstofsequence(1) = secondofsequence(4) Then
Picture1.Print firstofsequence(1) & ",";
End If
I thought this would do it, but my program gives a different result:
For x = secondofsequence(1) To secondofsequence(4)
If firstofsequence(1) = x Then
Picture1.Print firstofsequence(1) & ",";
End If
Next
Could you please tell me if the above is right or wrong?
Thanks for any help!
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
|