Refactoring #1340
Unanswered
Gregory1701
asked this question in
IBM i
Refactoring
#1340
Replies: 1 comment
-
I see that "Refactor" doesn't work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to refactor like in RDi? For example, here is a snippet:
If sqlstate <> '00000';
rows = 0;
Else;
Exec SQL GET DIAGNOSTICS :rows = ROW_COUNT;
EndIf;
If I highlight '00000' and right click, I have a context menu option of 'Refactor...'. This seems perfect as I would like to refactor this inline string into a constant at the top of my program. When I choose the 'Refactor...' I receive the inline message stating that 'No refactorings available'. The ideal resulting would be:
Dcl-c sql_success '00000';
If sqlstate <> sql_success;
rows = 0;
Else;
Exec SQL GET DIAGNOSTICS :rows = ROW_COUNT;
EndIf;
Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions