The Data Manager in WLPro v5.6, as in v4.5, lacks the Find function which one would use to locate all occurrences of a symbol in all datasets. Is there a plan to introduce it in a future release? Or is there perhaps a script based solution someone may have developed?
Size:
Color:
In general, there's no plan to add anything that you can do yourself in a script ;)
CODE:
Please log in to see this code.
Size:
Color:
Thanks for the fast reply, Cone; it works great! But you have to click on a symbol first. Would you happen to have a version that would pop up with a window or something that prompt you to input the symbol(s)?
Size:
Color:
You could use the Input method from Community.Components to pop up a window.
Size:
Color:
Can you point me to a script that uses it so I can understand its usage?
Size:
Color:
Sure, it's the method's description page in the Wealth-Lab Wiki.
Size:
Color:
OK, will check it out.
Size:
Color:
Came up with this:
CODE:
Please log in to see this code.
But the results are unreliable, and if the input box is left blank WLPro crashes. Can you fix this?
Size:
Color:
CODE:
Please log in to see this code.
Size:
Color:
Still doesn't work right. There's something deeper wrong within the code.
Size:
Color:
Neither it crashes for me on any version with blank symbol nor demonstrates unreliable results.
To eliminate any guesswork, what are the symbols with their DataSet names you're having problem with?
Size:
Color:
Here's the code I'm checking:
CODE:
Please log in to see this code.
I don't know if I changed something, but now it doesn't even popup with an input box either when I click on a symbol or hit the F5 key. Also, when I hit Compile, I get this message in the lower window:
error CS0428 @ (20, 15) : Cannot convert method group 'ToUpper' to non-delegate type 'string'. Did you intend to invoke the method?
Size:
Color:
QUOTE:
Also, when I hit Compile, I get this message in the lower window:
Synthax error, check Cone's syntax carefully.
Size:
Color:
Oh, what a bummer! Got it, fixed it, thanks.
Just one more thing: If I want the input box to remain open for inputting a 2nd or 3rd or 4th etc symbol what should I do? In other words, the box should remain open until I close it w/o typing anything.
Size:
Color:
CODE:
Please log in to see this code.
Size:
Color:
P.S. Just enter your symbols all at once, separating them with space, comma or ";"
Size:
Color:
Thanks, Eugene, works great! Only thing is I like to look at symbols' locations one below the other - meaning, all locations for 1 symbol listed first, then locations for symbol 2 listed next, and so on. If you get some time, please try to modify the code to do that.
Size:
Color:
Sorry, no - as you understand, I have no time for endless code modifications as it will almost certainly make me sacrifice the other work.
Cone and yours truly have provided you with an example, please feel free to modify it and discover C# along the way.
Size:
Color:
Hey guys, why don't you post this script as a utility script under Community downloads. Everybody needs to find a symbol now and then.
Size:
Color:
Thank you for the suggestion, I'll mark it for later.
Size:
Color: