Reassuring?
-
If c is blank do nothing, but still if c is blank, output blank array!!:wtf: Changing mind while coding!? and it is VBS:doh:
Function e1(c,outv)
ReDim outv(anc-1)
If c="" Then
Else
If c="" Then
For i=0 To ubound(outv)
outv(i)=""
Next
Else
x1=split(c,",")
For i=0 To ubound(x1)
If i<=ubound(outv) Then outv(i)=x1(i)
Next
End If
End If
End FunctionYes, I made it. Here is my first article. Please vote it if you find it helpful. Automation tool for web activities[^]
-
If c is blank do nothing, but still if c is blank, output blank array!!:wtf: Changing mind while coding!? and it is VBS:doh:
Function e1(c,outv)
ReDim outv(anc-1)
If c="" Then
Else
If c="" Then
For i=0 To ubound(outv)
outv(i)=""
Next
Else
x1=split(c,",")
For i=0 To ubound(x1)
If i<=ubound(outv) Then outv(i)=x1(i)
Next
End If
End If
End FunctionYes, I made it. Here is my first article. Please vote it if you find it helpful. Automation tool for web activities[^]
I think examples like this provide an argument for making programming languages inherently complex - that way people would really have to learn their craft and it may weed out some of the f*wits who write this kind of drivel.
-
If c is blank do nothing, but still if c is blank, output blank array!!:wtf: Changing mind while coding!? and it is VBS:doh:
Function e1(c,outv)
ReDim outv(anc-1)
If c="" Then
Else
If c="" Then
For i=0 To ubound(outv)
outv(i)=""
Next
Else
x1=split(c,",")
For i=0 To ubound(x1)
If i<=ubound(outv) Then outv(i)=x1(i)
Next
End If
End If
End FunctionYes, I made it. Here is my first article. Please vote it if you find it helpful. Automation tool for web activities[^]
-
If c is blank do nothing, but still if c is blank, output blank array!!:wtf: Changing mind while coding!? and it is VBS:doh:
Function e1(c,outv)
ReDim outv(anc-1)
If c="" Then
Else
If c="" Then
For i=0 To ubound(outv)
outv(i)=""
Next
Else
x1=split(c,",")
For i=0 To ubound(x1)
If i<=ubound(outv) Then outv(i)=x1(i)
Next
End If
End If
End FunctionYes, I made it. Here is my first article. Please vote it if you find it helpful. Automation tool for web activities[^]
I think the horror may be that "anc" hasn't been defined and the code won't even get to the horror you mention... :)
I wasn't, now I am, then I won't be anymore.
-
If c is blank do nothing, but still if c is blank, output blank array!!:wtf: Changing mind while coding!? and it is VBS:doh:
Function e1(c,outv)
ReDim outv(anc-1)
If c="" Then
Else
If c="" Then
For i=0 To ubound(outv)
outv(i)=""
Next
Else
x1=split(c,",")
For i=0 To ubound(x1)
If i<=ubound(outv) Then outv(i)=x1(i)
Next
End If
End If
End FunctionYes, I made it. Here is my first article. Please vote it if you find it helpful. Automation tool for web activities[^]
-
It's not all bad. At least the function doesn't need obfuscating :laugh:
Architecture is extensible, code is minimal.
Obfuscating VBS?! I never thought that. :doh: ;P
Yes, I made it. Here is my first article. Please vote it if you find it helpful. Automation tool for web activities[^]
-
I think the horror may be that "anc" hasn't been defined and the code won't even get to the horror you mention... :)
I wasn't, now I am, then I won't be anymore.
"anc" is atleast defined outside. ;)
Yes, I made it. Here is my first article. Please vote it if you find it helpful. Automation tool for web activities[^]
-
If c is blank do nothing, but still if c is blank, output blank array!!:wtf: Changing mind while coding!? and it is VBS:doh:
Function e1(c,outv)
ReDim outv(anc-1)
If c="" Then
Else
If c="" Then
For i=0 To ubound(outv)
outv(i)=""
Next
Else
x1=split(c,",")
For i=0 To ubound(x1)
If i<=ubound(outv) Then outv(i)=x1(i)
Next
End If
End If
End FunctionYes, I made it. Here is my first article. Please vote it if you find it helpful. Automation tool for web activities[^]
What I find deeply disturbing by this and other examples of bad coding is that these people get paid for writing this rubbish. Furthermore, what is more frightening is the fact that they could be writing code for safety systems or banking systems or who knows what else. No bloody wonder the software industry puts a NO WARRANTIES EXPRESSED OR IMPLIED notice into every EULA :doh: They're not even sure it's going to work. Can you imagine buying a new car and the manufacturer said that there were no warranties?
Nobody can get the truth out of me because even I don't know what it is. I keep myself in a constant state of utter confusion. - Col. Flagg
-
"anc" is atleast defined outside. ;)
Yes, I made it. Here is my first article. Please vote it if you find it helpful. Automation tool for web activities[^]
At least that part is reassuring. :)
I wasn't, now I am, then I won't be anymore.