Dear Form readers,
As a newbie I again try putting my embarrassing questions out there
I would like to select two characters at the time from a text string of hex values "3C3F786D" and find the corresponding ASCII char.
For the first part of this, I just want to read out two characters at the time using this one :
However, using this on the string "3C3F786D" gives me the output :
3C
3C3F
3C3F78
3C3F786D
While I wanted
3C
3F
78
6D
Can someone put me on the right track here please ?
Kind regards
Jørn
As a newbie I again try putting my embarrassing questions out there
I would like to select two characters at the time from a text string of hex values "3C3F786D" and find the corresponding ASCII char.
For the first part of this, I just want to read out two characters at the time using this one :
Code: Select all
UltraEdit.activeDocument.top();
while (!UltraEdit.activeDocument.isEof()) {
UltraEdit.activeDocument.startSelect();
UltraEdit.activeDocument.key("RIGHT ARROW");
UltraEdit.activeDocument.key("RIGHT ARROW");
var CurrentChar = "";
CurrentChar = UltraEdit.activeDocument.selection;
UltraEdit.activeDocument.endSelect();
UltraEdit.outputWindow.write(CurrentChar);
}
3C
3C3F
3C3F78
3C3F786D
While I wanted
3C
3F
78
6D
Can someone put me on the right track here please ?
Kind regards
Jørn