cancel
Showing results for 
Search instead for 
Did you mean: 

Order of execution

Former Member
0 Kudos

I need to know the order in which the code lines I insert in each window are run.

Does it depend on the vertical order of the windows in the tree?

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Maybe my question isn't clear enough.

If I have:

First case:

WINDOW1

-code1

-text1

WINDOW2

-code2

-text2

Will the function run code1 before code2?

Second case:

WINDOW2

-code2

-text2

WINDOW1

-code1

-text1

Will the function run code2 before code1?

If I give a value to a certain global var in code1, can I use it in text2?

If so, can I do that in both cases alike or just in first case?

Thanks a lot.

former_member196280
Active Contributor
0 Kudos

Usually, it run in a sequence, i.e CODE1 will be executed first and then code 2 will be executed in first case.

Similarly, code 2 executed and then code 1 will be executed in second case.

Now coming back to your second question, you can use the global variable in text2. it still works.

For better understanding, keep hard BREAK-POINT in your code lines and execute. You will understand the clear picture.

Regards,

SaiRam

Answers (1)

Answers (1)

varma_narayana
Active Contributor
0 Kudos

Hi..

I assume you are asking About Program lines in Smartforms.

They are executed in the Same sequence in which they are placed under a window.

<b>Reward if Helpful.</b>

Former Member
0 Kudos

I'm refering to different sets of program lines. I have created program lines in several different secondary windows, and I would like to know which is going to be run first.

Thanks a lot.

Former Member
0 Kudos

Program line code would be executed in same sequence as they were defined in program.

Former Member
0 Kudos

Do you mean that if I move the position of the windows in the tree the order of execution would be altered?