|
-
Oct 24th, 2013, 07:27 AM
#1
Thread Starter
Member
"Then Else" together with no code between?
Hi, I found a bit of syntax that I don't understand.
For I = LBound(TextArr) To J + 5
If Left(TextArr(I), 2) = "SB" Then Else TextArr(I) = ""
Next I
I've not seen 'Then' and 'Else' together without any code between, I don't know how that works.
Does it mean that the line 'NextI' should execute if the first 2 chars of TextArr(I) are "SB"? That might explain the lack of code after "Then".
In which case the Else statement means "If the first 2 chars are not "SB", set the array element's contents to null".
Have I got this right?
Tags for this Thread
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
|