Bug #187
drop self has issues with multiple objects on the same line
Status:
New
Priority:
Normal
Assignee:
-
Start date:
08/10/2022
Due date:
% Done:
0%
Description
Jose reports the following:
"Send Method of oObject (oObject(Self))" got changed to "Send Method of oObject oObject)"
"Get Function of oObject (Current_Record(oDD(Self))) (Value(Form1(Group1(Self)), 0)) to nVariable" got changed to "Get Function of oObject Current_Record(oDD)) (Value(Form1(Group1(Self)), 0)) to nVariable"
Send Method to (oObject(Self)) (oObject(Self)). It changes the first Self, but not the second.
"If table.field ne "" Set Value of (Form1(Self)) Item 0 to table.field" got changed to "If table.field ne "" Set Value of Form1) Item 0 to table.field" (Yes, two spaces between "of" and "Form1")
Not a DFRefactor problem: "Get Field_Current_Value of (oDD(Self))Field table.field to sVariable" (it worked) got chagend to "Get Field_Current_Value of oDDField table.field to sVariable" (don't compile)
It doesn't parse commented lines
Send method of (oObject1(oObjectN(Self))). It doesn't detect this. Not a problem, in this case the solution is not only quit (Self).
"Send Method (Value(oObjeto(Self)))" got changed to "Send method Value(oObject)"
see also: https://support.dataaccess.com/Forums/showthread.php?68858-DFRefactor-Drop-(Self)