p_bremm11
10 years agoContributor
Compare regions using variable?
In my test when I compare a region use the following script (Delphi example):
Regions.Danfe_CT_2_4242_Parte1.Check(Aliases.AcroRd32.wndAcrobatSDIWindow.AVSplitterView.AVSplitterView.AVSplitationPageView.AVSplitterView.AVScrolledPageView.AVScrollView.AVPageView, false, false, 0, 0, 'DANFE_CT_48_Parte1_Mask');
In the bold words I'd like to substitute a variable, so I will use in a function. Does anyone know how I could do?
Thank you!!!
Hi Patrick,
Here's how you can use the variables in your example:
strRegionName := 'Danfe_CT_2_4242_Parte1'; strMaskName := 'DANFE_CT_48_Parte1_Mask';
Regions.Items(strRegionName).Check(Aliases.AcroRd32.wndAcrobatSDIWindow.AVSplitterView.AVSplitterView.AVSplitationPageView.AVSplitterView.AVScrolledPageView.AVScrollView.AVPageView, false, false, 0, 0, strMaskName);