Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Command Output
Hopefully this will be a quick one pointing me in the right direction.
I am trying to programatically run some OI commands that I might normally run from the System Editor Command Line.
Specifically, in this case 'List_Index'. However, I can't seem to grab the output, certainly not from a return value or status. I know it is working because when I run it via the SRP Command Line in the SRP Editor I can see the output I want in the Status Window. I am wanting to capture that array.
{Note: I have already worked around this by using the stored information in SysColumns but thought it would more efficient and cleaner if I can use a tool already built for that purpose}
So how does one capture the output from those commands?
I am trying to programatically run some OI commands that I might normally run from the System Editor Command Line.
Specifically, in this case 'List_Index'. However, I can't seem to grab the output, certainly not from a return value or status. I know it is working because when I run it via the SRP Command Line in the SRP Editor I can see the output I want in the Status Window. I am wanting to capture that array.
{Note: I have already worked around this by using the stored information in SysColumns but thought it would more efficient and cleaner if I can use a tool already built for that purpose}
So how does one capture the output from those commands?
Comments
I am ashamed to say I have never actually used the Viewer before! Probably read about it / forgot about it. Handy though.
What I am after though is intercepting that output so I can store it in an Array from within the procedure it is called from.
RECEIVER property
https://wiki.srpcs.com/display/SRPUtilities/SRP_Run_Command
RECEIVER makes sense. That gives me a path to go down.
I am guessing this is effectively what the SRP Editor is doing with its Status window?
Thank you Gentlemen.