Precisely Speaking
May 18, 2012, 04:12:14 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: So what's news with you?  Tell us about it in "Getting To Know You"!
 
   Home   Help Calendar Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Call CLEARSELECT UniQuery Command in Paragraph  (Read 1698 times)
sniper612
Newbie
*
Posts: 2


« on: February 12, 2010, 07:48:02 AM »

Hi all,

Is there any other way to call the CLEARSELECT UniQuery command in paragraph apart from EXEC ">:CLEARSELECT"? This syntax works as intended, however, it will bring a side effect under GUI mode. Once the command is executed, the blue terminal screen will appear and disappear right after.

Thanks in advance!
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #1 on: February 12, 2010, 12:17:22 PM »

For GUI it's probably best to write a little BASIC routine that you can call to execute TCL commands quietly.  Maybe something like this:

SUBROUTINE EXECUTE.QUIETLY
$INCLUDE DMSKELCODE COMMON
EXECUTE PARAM CAPTURING VALUE
RETURN

Then you can call this via:

CALL EXECUTE.QUIETLY,CLEARSELECT

..or...

LOCAL L.RESULT
L.RESULT = B('EXECUTE.QUIETLY,..any TCL command...')

And the results will come back in the local variable L.RESULT.

Wrap a /PD.B around this and then you have something you can call either as a process or as a subroutine.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
sniper612
Newbie
*
Posts: 2


« Reply #2 on: February 15, 2010, 10:01:02 AM »

Thanks!
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!