|
-
Jul 17th, 2003, 05:03 PM
#1
Thread Starter
PowerPoster
What am I doing wrong?
Can anyone tell me what is wrong with this code, please?
VB Code:
If Counter < 2 AndAlso txtSin.Text <> "" Then Sine = CDbl(txtSin.Text)
Counter += CByte(1)
elseIf Counter < 2 AndAlso txtCos.Text <> "" Then Cosine = CDbl(txtCos.Text)
End If
Both the ElseIf and End If statements have the blue squiggly lines under them with the tooltip saying they must be preceded by a matching If statement
-
Jul 17th, 2003, 05:10 PM
#2
Frenzied Member
Move Sine = CDbl(txtSin.Text) to a new line.
'Heading for the automatic overload'
Marillion, Brave, The Great Escape, 1994
'How will WE stand the FIRE TOMORROW?'
Eloy, Silent Cries and Mighty Echoes, The Vision - Burning, 1979
-
Jul 17th, 2003, 05:15 PM
#3
Addicted Member
Code:
If Counter < 2 AndAlso txtSin.Text <> "" Then
Sine = CDbl(txtSin.Text)
Counter += CByte(1)
ElseIf Counter < 2 AndAlso txtCos.Text <> "" Then
Cosine = CDbl(txtCos.Text)
End If
"And most of the evils of society can, in fact, be cured through information. We have a society that has been disinformed and based on the disinformation has made irrational choices. And that's what I mean by 'ignorance.' People, who ordinarily might be smart, are deprived of the data by which to make a rational decision, don't have the data to do it."
Frank Zappa
-
Jul 17th, 2003, 05:26 PM
#4
Thread Starter
PowerPoster
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|