Contents | Index | < Browse | Browse >

    CALL PortName Command Arg1 Arg2... Arg6

    Gui4Cli has a special message type (something like an arexx
    message) which can be used by programs to help gain access
    to Gui4Cli's internal structure and manipulate or read them.

    The CALL command is used to send commands to such programs.

    PortName  - is the name of the Public Message port of the
		program you want to call. 
		Note : You must	have run the program first..
		Note2: PortNames are *case sensitive*

    Command   - this would usually be one word - a command 
		recognisable to the outside program. For
		convenience, this is always converted to upper
		case by Gui4Cli before sending the message.

    Arguments - up to 6 arguments can also be passed. You need
		to know the template of each command.

    When you send such a message, there may be some return value.
    If there is it will be in  internal variable  $$CALL.RET
    It may be a number, a word, or a sentence..

    ex :

	run 'guis:ext/lvform'   ; load the program
	lvuse mygui.gc 1	; make an lv "current"
	call LVFORM indent "t" ; send the lvform program the command
				; to indent the current lv by a tab.
	say 'Ret: $$call.retn"	; it won't return anything..