I forgot about the default User Menu. This is implemented by the USER.MNU file in your Vedit subdir. You can get the Insert-date-time to honor your insert mode by doing the following:
-Edit USER.MNU
-locate the line following "Insert Date and Time" in the macro (it starts with "Out_Ins() Date(NOCR)...")
-substitute the code below - make sure it is all on ONE LINE (copy it from here and then eliminate the linefeeds).
Here is the new code:
Out_Reg(103) Date(NOCR) Type_Space(2) Time(NOCR) Out_Reg(CLEAR)
if (Insert_mode){
Reg_Ins(103)} else {
Reg_Ins(103,OVERWRITE)
}
This macro stuff is actually pretty simple, once you get the hang of it. I think you can see what I've done by examining the original code and the new code, and by looking at the Help file to see how the commands work. The OUT_ commands are a bit arcane, but very handy.
Rich
|
|