Navigate to a Safe X3 element's declaration

In this section you will learn how to easily find a "declaration" of a referenced Safe X3 element (funprog, subprog, label, variable).

  1. Create a new project as shown in the first section of this tutorial.

  2. Create a new Safe X3 file within that project. Then copy and paste the following code:

    #**
    #* Display a message box !
    #*
    #* @param MESSAGE
    #*!
    Subprog DISPLAY(MESSAGE)
    Value Char MESSAGE

    If MESSAGE = ""
    MESSAGE = "# empty #"
    Endif

    Infbox MESSAGE

    End

  3. Set cursor to the MESSAGE variable reference at the end of the file, after Infbox statement.

  4. Select Navigate > Open declaration menu item.

    Declaration

    Now the declaration of the variable is selected in the editor.

Related concepts

Safe X3 views

Safe X3 Editor