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.


Only Forum Moderators, Administrators, and the owner of this message may delete it.

 
Jim Dean

Sage
2000100010010010010025
Posts: 3433

Joined: 3/13/2006
Location: L'ville, GA

User Profile
 
Subject : RE: End Do statement?
Posted : 6/23/2018 7:55 PM
Post #30090 - In reply to #30089

Two things

PigsFlyingLimit is not defined

Although I rarely use Do While, as I recall the proper exit is End Loop

I trust you realize the logic is redundant ... it would be tighter if PigsFlyingLimit was defined ahead of time and that was part of the Do While .. you wouldn't need the test inside the loop

Do While iPigs > 0 and iPigs <> iPigsFlyingLimit
iPigs = iPigs - 1
Loop

[Edited by Jim Dean on 6/23/2018 7:59 PM]

Deleting message 30090 : RE: End Do statement?


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