C CharlesIPTI Active Member Licensed User Longtime User May 14, 2012 #1 :sign0085: :sign0163: Before I make this really ugly block of if statements Is there really no switch statement in this language ?? I have already confirmed the absence of the For Each Anyone please Thank you :sign0089:
:sign0085: :sign0163: Before I make this really ugly block of if statements Is there really no switch statement in this language ?? I have already confirmed the absence of the For Each Anyone please Thank you :sign0089:
J Jost aus Soest Active Member Licensed User Longtime User May 14, 2012 #2 switch ==> select Code: Copy Select var Case 1 'This Case 2, 3 'That Case Else 'Or that. End Select Upvote 0
margret Well-Known Member Licensed User Longtime User May 14, 2012 #3 I am not sure what you are speaking of but I use this on very large files and variables and it works great: Code: Copy MyVar.Replace("Bad", "Good") Replaces all instances of the work Bad in the variable MyVar with the word Good. I can take a file with 5,000 words and many hundred instances and it will replace all of them as fast as you can click the button. Upvote 0
I am not sure what you are speaking of but I use this on very large files and variables and it works great: Code: Copy MyVar.Replace("Bad", "Good") Replaces all instances of the work Bad in the variable MyVar with the word Good. I can take a file with 5,000 words and many hundred instances and it will replace all of them as fast as you can click the button.
C CharlesIPTI Active Member Licensed User Longtime User May 14, 2012 #4 Thanks :sign0060::sign0060::sign0060: I didn't see the switch statement in the documentation Thank you Upvote 0
Thanks :sign0060::sign0060::sign0060: I didn't see the switch statement in the documentation Thank you