Am 19.01.2011 19:26, schrieb Tom Shelton:
BTW, I find String.Substring more intuitive than Right(String).
The lack of String.Right (or whatever it would be called), is a downside that I
find fault with like others do, too.
So, add the namespace alias and just do:
Dim y = VB.Right(str,4)
For crying out loud, you only have to do this inside of a form - and
honestly, should you even have this logic there?
MSFT should've dropped the whole MSVB library.
Because, instead
of being thankful to have the well-known names - even though we could do
well without - people complain about the BIG PROBLEMS they have walking
the LONG STONEY WAY in order to reach the GOAL FAR FAR AWAY.
No, in reality, it's just prepending a name as we do it a thousand
times a day in everday's business.
To the other guys:
I use "Msgbox" frequently even though there is Messagebox.Show!
It works without any prefix. Even in a Form. Why? Because it's not one
of the very few exceptions that this discussion going in circles is all
about.
Let me tell you something:
You can call
DateAdd
without a prefix.
You can call
DateDiff
without a prefix.
You can call
DatePart
without a prefix.
You can call
DateSerial
without a prefix.
You can call
DateValue
without a prefix.
You can call
Day
without a prefix.
You can call
Hour
without a prefix.
You can call
Minute
without a prefix.
You can call
Month
without a prefix.
Shall I continue? Oh yes, I will!
MonthName
Second
TimeSerial
TimeValue
Weekday
WeekdayName
Year
DateString
Now
TimeOfDay
Timer
TimeString
Today
ChDir
ChDrive
FileClose
FileCopy
FileGet
FileOpen
FilePut
FileWidth
Input
Kill
Lock
MkDir
Print
Shall I continue again? Or do you start seeing your
own narrow-minded view? You are really complaining
about ONE or TWO exceptions among dozends or hundreds of
functions and properties names, and these TWO names
only collide in conjunction with ONE special situation?
You only want to defend the opposite just because it is
the opposite. It's a piece of impudence that you steel our
time this way because it's time from people that are actually
meaning well. I have a lot of patience but this kind of your
irreverence is really contemptible!