Recursion Problem - DFWstangs Forums
 
LinkBack Thread Tools Display Modes
post #1 of 7 (permalink) Old 05-19-2003, 10:18 AM Thread Starter
 
Join Date: Mar 2003
Posts: 1,394
Recursion Problem

http://24.167.84.56/aspCode.htm

the error i get is "Expected 'If' "
xtremcoder is offline  
Sponsored Links
Advertisement
 
post #2 of 7 (permalink) Old 05-19-2003, 11:46 AM
Bite Me!!!
 
I Stang U's Avatar
 
Join Date: Jul 2000
Location: A new Beast in Town!!
Posts: 2,457
you are missing an End If statement after you If...Then
I Stang U is offline  
post #3 of 7 (permalink) Old 05-19-2003, 02:40 PM
No Cerveza... No Trabajo
 
01WhiteCobra's Avatar
 
Join Date: Jun 2002
Location: Where's my beer?
Posts: 21,924
Either add an "End If" statement or change your code like this:

Sub showData
...
recordSet.MoveNext
Dim myMachine
myMachine = recordSet("machine_name")
If myMachine = machine Then showData()
End Sub
01WhiteCobra is offline  
 
post #4 of 7 (permalink) Old 05-19-2003, 02:50 PM Thread Starter
 
Join Date: Mar 2003
Posts: 1,394
Re: Recursion Problem

Quote:
Originally posted by xtremcoder
http://24.167.84.56/aspCode.htm

the error i get is "Expected 'If' "
that fixed it, thanks i was in C++ mode and forgot about the end if
xtremcoder is offline  
post #5 of 7 (permalink) Old 05-19-2003, 04:32 PM
Bite Me!!!
 
I Stang U's Avatar
 
Join Date: Jul 2000
Location: A new Beast in Town!!
Posts: 2,457
common mistake... that is why the first thing I do is close my if then work from there


getts really hairy with nested if statements
I Stang U is offline  
post #6 of 7 (permalink) Old 05-19-2003, 04:33 PM Thread Starter
 
Join Date: Mar 2003
Posts: 1,394
Re: Re: Recursion Problem

Quote:
Originally posted by xtremcoder
that fixed it, thanks i was in C++ mode and forgot about the end if
and loops... gotta love do while loops.... stupid vb LoL
xtremcoder is offline  
post #7 of 7 (permalink) Old 05-19-2003, 06:12 PM
Bite Me!!!
 
I Stang U's Avatar
 
Join Date: Jul 2000
Location: A new Beast in Town!!
Posts: 2,457
use a do until and you are done ;-)
I Stang U is offline  
Sponsored Links
Advertisement
 
Reply

Bookmarks

Quick Reply
Message:
Options

Register Now



In order to be able to post messages on the DFWstangs Forums forums, you must first register.
Please enter your desired user name, your email address and other required details in the form below.

User Name:
Password
Please enter a password for your user account. Note that passwords are case-sensitive.

Password:


Confirm Password:
Email Address
Please enter a valid email address for yourself.

Email Address:
OR

Log-in










Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page
Display Modes
Linear Mode Linear Mode



Posting Rules  
You may post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

 
For the best viewing experience please update your browser to Google Chrome