Labels: credits needed, english, eraserheads, everyday, pics, tagalog-tigalowg, total rantdom, zephyrus
Run-time error '13': Type Mismatch
According to the vbforums.com, a type mismatch happens when one is trying to use the wrong data type, eg: writing a string into a variable which is declared as Integer. I encountered this while making the codes for the seventh and last message box.
For the Math Operator, I came across three bugs. And these are:
Compile Error: Expected End Sub
This happens when there is incorrect syntax. If I remember correctly, this happened when I tried to replace the End Sub with an End If.
According to edndoc.esri.com, if one attempts to use a property and either forget or misuse the Set keyword, Visual Basic will fail the compilation of the source code with a "method or data member not found" error message.
Compile Error: Block If without End If
Sample:
Private Sub Option2_Click(Index as Integer)
If Index = 0 Then 'Yellow
frmMath.BackColor = RGB(255, 255, 51)
If Index = 1 Then 'Blue
frmMath.BackColor = RGB(0, 51, 255)
If Index = 2 Then 'Violet
frmMath.BackColor = (51, 0, 102)
(and so on...)
According to xtremevbtalk.com, this error happens when there are not enough End If's for the If statements. This happened when I accidentally typed in If instead of ElseIf. This caused the program to have more If statements than End If's.
Labels: english, TLE visual basic