Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fcode

Former Member
0 Likes
448

why do we use 001 in this fcode ' BUtton1(001) '

MODULE USER_COMMAND_0100 INPUT.

SAVE_OK = OK_CODE.

CLEAR OK_CODE.

CASE SAVE_OK.

WHEN 'BUTTON_EXIT'.

LEAVE PROGRAM.

WHEN 'BUTTON_1'.

OUTPUT = 'Button 1'(001).

WHEN 'BUTTON_2'.

OUTPUT = 'Button 2'(002).

WHEN 'BUTTON_3'.

OUTPUT = 'Button 3'(003).

WHEN 'BUTTON_4'.

OUTPUT = 'Button 4'(004).

WHEN OTHERS.

OUTPUT = SAVE_OK.

ENDCASE.

ENDMODULE.

2 REPLIES 2
Read only

Former Member
0 Likes
364

Hi!

Double click on the (001), and it will navigate you to a text-element.

Regards

Tamá

Read only

Former Member
0 Likes
364

Hi,

It means that the text elements are defined as follows, 001 = 'Button 1' , 002 = 'Button 2', 003 = 'Button 3', 004 = 'Button 4' .

Anywhere else in the program if you refere text-001, it will take the text 'Button 1'.

But as I said, it should be defined in the text elements.

doble click on 001 to find how it is defined.

Regards

Subramanian