- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Holy crap, now that I've calmed down from a 3 minute LMAO [:D], I don't think I'll be allowed to read the Daily WTF at work any more. [:'(]
Admin
The part I don't understand is why it makes extra trips to the database. I'd expect at an absolute minimum that it would be cached so that there's only two lookups, and potentially pulled into a dataset and worked with offline if working with multiple tables/sets.
Admin
The fact that the values he reads COULD all be from different rows if someone else updates the table in the time between the multiple queries is another WTF.
Admin
Ah, yes, of course, I should have noticed. Sorry about that.
Admin
Admin
In this case, u have to do:
FunctionName = returnVal
exit function
VB6 sucks :)
Admin
I think you guys are missing the wood for the trees. TRWTF is that the function edits its own comment block, but that comment is self-contradictory
Admin
Um no. I think that is an example of output in the comments - not very clear, though.