OmniTrader Forum - OmniTrader 2017 Technical Support
OmniScan formula comment stops dynamic list build

^ Top
SteveL

Posts: 262

Joined: 8/19/2005
Location: Boulder, CO

User Profile
 
Subject : OmniScan formula comment stops dynamic list build
Posted : 3/22/2017 4:36 PM
Post #40879

Barry,
In this thread,
https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=12313
Tom Helget posted an OmniScan formula. This formula works fine for the daily scan. But I tried using it to "Run current scan dynamically" and got no results. The scan popup appeared, but the progress bar never appeared or advanced. After 30 seconds, the ToDo box reappeared.

I started making changes to Tom's formula to debug the problem, and found that the comment he had inserted in the formula was responsible for the failure to build the dynamic list. I removed the comment, and the "Run current scan dynamically" completed successfully, and produced a dynamic scan list.

Why does the scan for "today" work okay, but "Run current scan dynamically" fail?

Here's the original formula including the comment:

Attached file : 2017-03-22_15-18-34.png (17KB - 648 downloads)

^ Top
Barry Cohen

Posts: 6338

Joined: 1/19/2004

User Profile
 
Subject : RE: OmniScan formula comment stops dynamic list bu
Posted : 3/22/2017 4:58 PM
Post #40881 - In reply to #40879

It seems the dynamic scan feature isn't able to distinguish OmniScript text that is commented out.
^ Top
EYEGUY

Posts: 1543

Joined: 12/12/2003
Location: BALDWINSVILLE, NEW YORK

User Profile
 
Subject : RE: OmniScan formula comment stops dynamic list bu
Posted : 3/22/2017 5:04 PM
Post #40882 - In reply to #40881

Barry and Steve:

Thanks for discovering this problem!

I always comment rather complex OmniScans since I have so many and find it helpful if I want to go back months later to modify them. The comment helps me to recall just what I was trying to achieve with the OmniScan.

As a matter of fact I was kind of surprised to see that a Daily OmniScan could even be commented when I discovered that ability a very long time ago.

Tom Helget


https://www.omnitrader.com/currentclients/otforum/thread-view.asp?threadid=14381&posts=3