When I run this code
V1 = Val(V1a.Text)
V2 = Val(V2a.Text)
P1 = Val(P1a.Text)
P2 = Val(P2a.Text)
I get a error that says
Type mismatch
'[undefined]'
The error will happen when I run any of the lines. I have declared V1,V2,P1,P2 as integer with the same result. The code will work on normal VB as I have tested on a school computer today.[/img]