|
-
Sep 2nd, 2012, 10:33 AM
#7
Re: Avoiding long painful conditionals
 Originally Posted by MotoX646
Code:
Dim booleanArray As Boolean() = {IsFontColour, IsFontSize, IsWidth, IsHeight, IsMarginL, IsMarginR, IsSpeed, IsEasing}
Dim objectArray As Object() = {Fcolor, Fsize, Width, Height, marginL, marginR, speed, easing}
Dim LongStr As String = Nothing
For i As Integer = 0 To booleanArray.Length - 1
If booleanArray(i) = True Then
LongStr += objectArray(i).ToString
End If
Next
MsgBox(LongStr)
Huh? Doesn't that give exactly the same result for (forgive the shorthand) aT bT cF, aF bT cT and aT bF cT?
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
|