Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

7.114 SET_REF

Note
Note: Usage options

The SET_REF command is used to assign a component reference to a variable that has been defined with a dynamic reference in the DEFINE_COM statement. With a dynamic reference, an instance of a component is created only when a reference to it is assigned with the SET_REF command.

...

7.114.2 SET_REF Examples

7.74 IF_REF


Panel
bgColor#ffffcc

                                                                                                    Required                                                                                 

       SET_REF -----

No Format
                                                          Required               SET_REF ---

COM  -------

-- Variable

name|variable

name-------

>                      >

-->                                                                                

                      >--

TO  --------

---- Reference

expression

-----------------

>                       >

>                                                                                 

                      >--

CONTEXT  ----

*DEFAULT  -------------------------

>                                        *OWNER                                                                     *MODULE                                                                    *NEW                                                                       *NAMED ---- #Variable                                     >--

--->       
                                                    *OWNER                                    
                                                    *MODULE                                   
                                                    *NEW                                      
                                                    *NAMED ---- #Variable                                                                                               

                     >-- COM_ERROR--

-

*ABORT

--------------------------------|       

                                *IGNORE                                                                    *SET_NULL      


                                                   *IGNORE                                   
                                                   *SET_NULL   

 

                                                    

                                                                          

...