Noted the following problems in the regexDialog script distributed
with dialog .81 (nbr. 3 is also a problem in the version proviously
distributed with regex 2.04):
1. The comment at the top of regexDialog.powerpro says this version is
unchanged since regex 2.04, which is not entirely true.
2. In the latest version, the dialog title is being assigned to a
variable. The variable is being referenced on the !0 line of the
regexDialog.txt file. Even though the variable contents has some
capitalized letters, they are not being used in the actual dialog
title displayed when the script is run. It doesn't help to use
powerpro's case function; I tried using #case("title", sDlgTitle) on
the 0! line of regexDialog.txt with no improvement.
3. The following code in Function setControlProperties() causes PP to
crash when changing the radio button selection from Match to MatchAll
(or Replace) to something else. This problem also exists in the
version actually distributed with regex 2.04.
Found the problem with the new exec.scripttrace capability in PowerPro
(thanks Bruce)
st_hDlg.show("ebFmt", sHide).enable(bEnable)
st_hDlg.show("stFormat", sHide).enable(bEnable)
Remove the chained dot syntax and it no longer crashed:
;st_hDlg.show("ebFmt", sHide).enable(bEnable)
st_hDlg.show("ebFmt", sHide)
st_hDlg.enable("ebFmt", bEnable)
;st_hDlg.show("stFormat", sHide).enable(bEnable)
st_hDlg.show("stFormat", sHide)
st_hDlg.enable("stFormat", bEnable)
Regards,
Sheri