Run button behaviour?

General discussions about working with the Component Pascal IDE and programming .NET using Gardens Point Component Pascal (GPCP)
Post Reply
Helpdesk
Posts: 33
Joined: Sat Jan 01, 2011 5:43 am
Contact:

Run button behaviour?

Post by Helpdesk » Tue Feb 22, 2022 10:05 pm

If I compile and run an example, then load and compile a different example, the run button runs the first example, not the one that was just compiled. Closing the IDE and opening it again allows the correct example to be launched via the run button. This seems to be a persistent phenomenon.

cfbsoftware
Site Admin
Posts: 493
Joined: Fri Dec 31, 2010 12:30 pm
Contact:

Re: Run button behaviour?

Post by cfbsoftware » Tue Feb 22, 2022 10:13 pm

The Run button behaviour that you describe is ‘as designed’. There are two Run menu items, Run and Run Again. The button corresponds to the Run Again function as that is more frequently used and doesn’t require the entry of any parameters. If you switch to a new example, you need to select Run from the menu (or type Alt-P-R) the first time that you run it.

However, as you have pointed out, when you select Run Again (or click on the Run Again button), for the first time in a new CPIde session, it is the same as if you had selected Run.

Post Reply