If you want to replace your existing weakly-typed GetClass() calls with the new, strongly-typed get-class keyword, you can do so via regex in PDSOE.
Using Search (CTRL-H), select the 'Regular Expression' checkbox.
Paste the following into the 'Containing Text' field
Class:GetClass\(['"](.*)['"]\)
Select Replace.
In the 'With' field in the following dialog, paste
get-class(\1)
You can choose Preview or OK to apply the action. Note that this regex will not work well with Progress.Lang.Class:GetClass('foo'), so you might first want to replace
Progress.Lang.Class:GetClass\(['"](.*)['"]\) with get-class(\1) and then the unqualified version.
hth,
-- peter
If you want to replace your existing weakly-typed GetClass() calls with the new, strongly-typed get-class keyword, you can do so via regex in PDSOE.
Using Search (CTRL-H), select the 'Regular Expression' checkbox.
Paste the following into the 'Containing Text' field
Class:GetClass\(['"](.*)['"]\)
Select Replace.
Class:GetClass\(['"](.*)['"]\)
In the 'With' field in the following dialog, paste
get-class(\1)
You can choose Preview or OK to apply the action. Note that this regex will not work well with Progress.Lang.Class:GetClass('foo'), so you might first want to replace
Progress.Lang.Class:GetClass\(['"](.*)['"]\) with get-class(\1) and then the unqualified version.
hth,
-- peter
Flag this post as spam/abuse.