Referencing Objects within C/SIDE

Hi All,

I am attempting to modify an OnPush action on a menu button item.

Here is the current function

RentAgreement.GET(“Agreement No.”);
RentAgreement.SETRECFILTER;

SalesSetup.GET;
IF SalesSetup.“Use Rent Schedule Cards” THEN BEGIN
AgreementCard.SETTABLEVIEW(RentAgreement);
AgreementCard.RUN;
END ELSE BEGIN
AgreementLinesCard.SETTABLEVIEW(RentAgreement);
AgreementLinesCard.RUN;
END;

My simplisitic knowledge would lead me to believe that I should be able to see the following objects when I choose the Globals option

RentAgreement
SalesSetup
AgreementCard
AgreementLinesCard

However, the only one that is in the list is

SalesSetup

But if I press F5 all four are visible.

I have tried looking at the globals associated with menu button and the form but there is no evidence for the missing three.

Can anyone give me some pointers.

Kind regards

Rob

so as you are writing about the global variables, don’t forget to look at the locals :wink:

Many Thanks Joerg,

They were indeed declared as locals.

As we say in the UK when doing home improvement.

“Measure twice cut once”