exec_local()

This page describes one of the supplementary ways of running an application.

The main way to run an application is the RUN statement.

exec_local() is used to run a local application, such as notepad on Windows. It takes 2 arguments and has this syntax:

exec_local(command, user_id)

where:

MAIN

  OPEN WINDOW mywin WITH FORM "exec_local_function"

  MENU

    COMMAND "notepad"

     CALL exec_local("notepad.exe", "user")

     

    COMMAND "EXIT"

      EXIT MENU

  END MENU

END MAIN

example form code

<?xml version="1.0" encoding="UTF-8"?>

<form xmlns="http://namespaces.querix.com/2011/fglForms" title="New Form 1">

    <gridpanel identifier="rootContainer" fieldType="FORM_ONLY" fieldTable="formonly" enable="true" visible="true">

        <preferredsize width="200"/>

        <items>

        </items>

        <gridrowdefinitions>

            <gridrowdefinition>

                <gridlength gridLengthType="AUTO"/>

            </gridrowdefinition>

        </gridrowdefinitions>

        <gridcolumndefinitions>

            <gridcolumndefinition>

                <gridlength gridLengthType="Percent" gridLengthValue="100.0"/>

            </gridcolumndefinition>

        </gridcolumndefinitions>

    </gridpanel>

    <screenrecords>

        <screenrecord identifier="FormOnly"/>

    </screenrecords>

</form>

 

Contact Us

Privacy Policy

Copyright © 2024 Querix, (UK) Ltd.