Home
А я брахаць ня ўмею, дык і завыў [entries|archive|friends|userinfo]
Абу Антось

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

Funny bug [Jul. 17th, 2007|04:17 pm]
[Tags|, , ]

You would think that "next line" after the condition that raises an error would be the line after "End If", not the one right after "Then"...
On Error Resume Next
Dim c As Collection
   'comment out to show the bug
   'Set c = New Collection
   'c.Add "Shit"
   'since c wasn't initialized, accessing it's property raises an error
   'you'd think that Resume Next will go to the line after End If, but...
   If c.Count > 0 Then
      MsgBox "Shit happened"
   End If
Link14 comments|Leave a comment

Zen of Visual Basic [Mar. 18th, 2005|07:30 pm]
[Tags|, , ]

Dim Everything As Object

If Everything Is Nothing Then
   MsgBox "Everything Is Nothing"
End If
LinkLeave a comment

Сiненькi сьцiплы бульточак [Aug. 12th, 2002|05:33 pm]
[Tags|, , ]
[Current Music |Pere Ubu - St. Arkansas]

Каля паловы часу application developer'а йдзе не на ўласна распрацоўку праграм, а на барацьбу з чужым кодам - third-party APIs, controls, etc. Пры гэтым у мяне, здаецца, з ростам квалiфiкацыi гэты адсотак расьце, бо даюць правiць усё больш кавалкаў, да якiх другiя проста ня ведаюць як падступiцца.
далей гiсторыя пра VB, майкрасофтаўскiя й шэрыданаўскiя чэкбоксы )
Link2 comments|Leave a comment

navigation
[ viewing | most recent entries ]

Advertisement