Set Data Range in Code
Author: hlh
Creation Date: 11/24/2010 5:46 AM
profile picture

hlh

#1
Hi,

I'd like to set the Data Range in my DataSet-from-XY-to-ASCII-export in the code and not on the selection field. Ideally something like "to" = Today - 1 workday, and "from" = "to" - 1 month. Maybe I would be able to find the right C# code for Today and so, but is it even possible to override the hard set/pre-selcted Data Range?

What would be even cooler is if I would read my previously exported DataSet ASCII file, get last date, and set export from date > last data to Today (or Today - 1) and append it to the existing file.

Thanks!
profile picture

Eugene

#2
Override the Data Range dialog in code? No.
Specify "All Data" and then, while looping bar by bar, set the range manually? Yes. Check out DateTimeToBar in the QuickRef.
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).