scrier
14 years agoContributor
Assign alias to variables.
Is there some way to assign Aliases to global variables in scripting so that you can update them in one file when the Aliases is changed between software revisions. This can change if they cleanup the namegiving between releases for example and it's quite annoying to change in each script file that uses the Alias.
Compare
Regions.Compare("lbl_NavigationTest", Aliases.application.wndQwidget.QWidget.Statusrow.frmMain.framebox_2.lbl_navigationPath)
with
var lblNavigationInfo = Aliases.application.wndQwidget.QWidget.Statusrow.frmMain.framebox_2.lbl_navigationPath;
Regions.Compare("lbl_NavigationTest", lblNavigaionInfo)
I wan't to do the latter but with global alias variables so that if Aliases.application.wndQwidget.QWidget.Statusrow.frmMain.framebox_2.lbl_navigationPath changes to Aliases.application.wndQwidget.QWidget.Statusrow.frmMain.fmrInfo.lbl_navigationPath I can do this in one place instead of each region compare that uses the Alias.
Compare
Regions.Compare("lbl_NavigationTest", Aliases.application.wndQwidget.QWidget.Statusrow.frmMain.framebox_2.lbl_navigationPath)
with
var lblNavigationInfo = Aliases.application.wndQwidget.QWidget.Statusrow.frmMain.framebox_2.lbl_navigationPath;
Regions.Compare("lbl_NavigationTest", lblNavigaionInfo)
I wan't to do the latter but with global alias variables so that if Aliases.application.wndQwidget.QWidget.Statusrow.frmMain.framebox_2.lbl_navigationPath changes to Aliases.application.wndQwidget.QWidget.Statusrow.frmMain.fmrInfo.lbl_navigationPath I can do this in one place instead of each region compare that uses the Alias.