I found what appears to be a bug with nested loops (not even sure UE supports nested loops, but it doesn't say anywhere that it doesn't). My macro takes a line and reformats it. However, when the outer EndLoop (last line) is hit, the macro repeats from the previous EndLoop 11 lines back, not from the first Loop at beginning. Here's my macro:
Here's some sample data in case anyone wants to see this problem in action:
Code: Select all
InsertMode
ColumnModeOff
HexOff
UnixReOff
Loop
Key HOME
Key Ctrl+RIGHT ARROW
Key Ctrl+RIGHT ARROW
IfCharIs "Datalist: "
Key END
Key Ctrl+LEFT ARROW
Key Ctrl+LEFT ARROW
Key Ctrl+LEFT ARROW
DeleteToEndofLine
Key HOME
Key Ctrl+RIGHT ARROW
DeleteToStartofLine
StartSelect
Key Ctrl+RIGHT ARROW
Cut
Key Ctrl+RIGHT ARROW
Key Ctrl+RIGHT ARROW
Loop 8
IfCharIs ","
ExitLoop
Else
Key RIGHT ARROW
EndIf
EndLoop
Loop 8
IfColNumGt 18
ExitLoop
Else
" "
EndIf
EndLoop
Key RIGHT ARROW
Key RIGHT ARROW
Paste
StartSelect
Key END
Cut
Key HOME
Paste
Key DOWN ARROW
Else
ExitLoop
EndIf
EndLoop
Code: Select all
1268 Public Datalist: WS, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: &LDMERR, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: SERVRLOG, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: CCDPRES, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: MFCTRL, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: PRSCUST, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: WIP, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: ACCTOWNR, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: NASPECL, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: NATRK, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: NARESOLU, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: NALIEN, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: CHKORDER, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: STARTCHK, Owner: SYSTEM_S_01f1058e, Time: 09464487
1268 Public Datalist: NACTRL, Owner: SYSTEM_S_01f1058e, Time: 09464487