Normal Topic @SelectTreeItem (Read 635 times)
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
@SelectTreeItem
Apr 30th, 2010 at 7:07pm
Print Post Print Post  
In the Following Code the highlighted code won't run without the @marco above it, Why??   Huh

The macro is just Shift-(F6).

Var vSuccess as Int      

vSuccess = @SelectTreeItem("Gha_Main_Appl!Forms!Search/Update!Masterwo!Closeout")
     vSuccess = @LoadRetrieveSpec("Open Work Orders")
           vSuccess = @SelectTreeItem("Search Menu!Search Commands!Retrieve New Results (F10)")
                 vSuccess = @LoadTableSpec("Table_View")
                       RunTableSpec()

                       @MACRO("c:\sesame2\data\retrieve.mac")
           vSuccess = @SelectTreeItem("Search Update Menu!Other Commands!Toggle Table View (Shift-F6)")

                             IF vSuccess = 0
                             {
                                   Writeln("It Failed")
                             }  
« Last Edit: Apr 30th, 2010 at 9:10pm by proudpoppy »  
Back to top
 
IP Logged
 
Carl Underwood
Senior Member
Members
*****
Offline



Posts: 1351
Location: New Hampshire
Joined: Mar 11th, 2003
Re: @SelectTreeItem
Reply #1 - May 1st, 2010 at 12:42am
Print Post Print Post  
I see the same here, but why not just use the macro?

I initially thought it might be because you had all of those commands in another form, so I tried breaking it up into segments, in a way that the "@SelectTreeItem(... ...Shift-(F6))" line was actually in the "On Form Entry" event of the target form. Still didn't work -- this one surprised me. I thought surely it wasn't working for you because you had that line in another form.

Then, going on the assumption that maybe the the form just barely finished displaying, and maybe it needed a bit more time before it could change to table view, I tried slipping a Loiter command above the "@SelectTreeItem(... ...Shift-(F6))" line, but that didn't help either.

Not sure why this isn't working?

  


Carl Underwood
CDU Computer Consulting LLC
Epsom, New Hampshire
Back to top
IP Logged
 
proudpoppy
Full Member
Members
***
Offline


Do What ??

Posts: 420
Location: South Carolina
Joined: Apr 7th, 2004
Re: @SelectTreeItem
Reply #2 - May 1st, 2010 at 12:49am
Print Post Print Post  
At least I know its not me this time, lol   Wink
  
Back to top
 
IP Logged