hi, im new in VB programing, so I need some help...pls help me because I have exam from this in a week, and I dont know the basics...
Every time I try to run this program :
Dim x as double, y as double
x=Inputbox("x=")
if x<-1 then
y=0
elseif x<0 then
y=2*x+2
elseif x<5 then
y=x^2-3*x+4
else
y=8
end if
msgbox("for x=" &x& "y=" &y)
End sub
Programme says "Compile error- Expected list separator or )"
what does that mean?? Where is error in my programme...
p.s. sorry for my bad english, hope you understand whats my problem
Every time I try to run this program :
Dim x as double, y as double
x=Inputbox("x=")
if x<-1 then
y=0
elseif x<0 then
y=2*x+2
elseif x<5 then
y=x^2-3*x+4
else
y=8
end if
msgbox("for x=" &x& "y=" &y)
End sub
Programme says "Compile error- Expected list separator or )"
what does that mean?? Where is error in my programme...
p.s. sorry for my bad english, hope you understand whats my problem