A little tool if one often has to evaluate numeric expressions in the text buffer.
Assign the following macro (in one line) to a key of your choice:
if(BB != -1){
Reg_Copy_Block(99, BB, BE)
Goto_Pos(BE)
Ins_Text(" = ")
Num_Ins(Num_Eval_Reg(99), LEFT+NOCR)
}
Then mark-block the expression and press the above key.
VEDIT then will evaluate the marked expression and write the result into the buffer.
Christian
|
|