Start a conversation

Creating global variables with sc_set_global macro

This macro is used to create global variables which can be viewed in different parts of the system, the creation can be made as follows: 

$name = "John";

sc_set_global ([name]);

Thus is created a global variable name of "[name]" with the content "John".

The macro allows the creation of two or more global variables simultaneously.


sc_set_global ([name], [age ],....);

An example is a login application, using the macro to save the name or the user login and exhibit it in the header of the application menu, using the variables of the header (Option Value).

Ex: Hello, [name].

Choose files or drag and drop files
Was this article helpful?
  1. Amanda Santos (Migrated deleted Agent)

  2. Posted
  3. Updated