- ago


I'm getting the above error message. I have both WealthLab.Core and System.Data namespaces included, they're both needed.
This method also gives the same error message:
CODE:
DataSet ds = DataSetFactory.FindDataSet(dsName);


How to resolve?
0
260
Solved
7 Replies

Reply

Bookmark

Sort
- ago
#1
The standard way is to fully qualify the type name:
CODE:
WealthLab.Core.DataSet ds = WLHost.Instance.FindDataSet(dsName);
0
Glitch8
 ( 10.94% )
- ago
#2
Try explicitly saying WealthLab.Core.DataSet in your code?
0
Best Answer
- ago
#3
Explicit statement as above took care of the error, thanks!

But to my (admittedly simplistic) way of thinking a dataset ...is a dataset ...is a dataset. It ought to be be having identical properties & methods regardless of by which method it gets called. Oh well, the mysteries of programming.....
0
- ago
#4
No way. Wealth-Lab's DataSet is a "watchlist" in trader's lingo whereas Microsoft's DataSet is a collection of data retrieved from a database.
0
- ago
#5
OK.

One last Q: Is there a way to get the total # of symbols in the dataset w/o cycling through them all and then counting? Something like ds.Count would have helped but I don't see it.
0
Glitch8
 ( 10.94% )
- ago
#6
ds.Symbols.Count
0
- ago
#7
Thank you.
0

Reply

Bookmark

Sort