OmniTrader Professional Forum OmniTrader Professional Forum
forums calendars search
today this week
 
register logon control panel Forum Rules
You are currently browsing as a guest.
You should logon to access more features
A Self-Moderated Community - ALL MEMBERS, PLEASE READ!
Vote for Members who contribute the most to your trading, and help us moderate content within the Forums.


This message cannot be deleted. It is the first message of the thread.
Administrators or moderators may choose to delete the entire thread


 
kmcintyre

Veteran
10025
Posts: 132

Joined: 9/12/2007
Location: Valley Center, CA

User Profile
 
Subject : End Do statement?
Posted : 6/23/2018 7:18 PM
Post #30089

dim iPigs as integer
iPigs = 5
Do While iPigs > 0
if iPigs = iPigsFlyingLimit then
end Do
else
iPigs = iPigs - 1
end if
Loop

Why does the OL compiler barf on this? The End Do
statement appears to be the issue. But why?

Is there another way to break out of a Do loop?

Also, End While doesn't seem to be supported.

help with iteration please...

Deleting message 30089 : End Do statement?


Nirvana Systems
For any problems or issues please contact our Webmaster at webmaster@nirvsys.com.