Tuesday, November 3, 2009

When Right makes "Might be a huge waste of time and effort"...

<% function RightOne(strInput)
   RightOne = Right(strInput,1)
end function


function RightTwo(strInput)
   RightTwo = Right(strInput,2)
end function


function RightThree(strInput)
   RightThree = Right(strInput,3)
end function


function RightSide(strInput, numOfChars)
   if numOfChars = 1 then
      RightSide = RightOne(strInput)
   elseif numOfChars = 2 then
      RightSide = RightTwo(strInput)
   elseif numOfChars = 3 then
      RightSide = RightThree(strInput)
   end if 
end function %>

Why do vbScript coders get to have all the fun?  Clearly, this programmer is being paid per line of code.  I'm shocked, however, that there isn't any documentation whatsoever.  Didn't the guy consider the fact that an extended essay on the philosophical nature of "Rightness" would have eaten up all kinds of space?

0 comments:

Post a Comment