Newbie key mapping help
Trying to map F12 to add the index marker to text, but do not know enough to see what I am doing wrong.
Here is what I got so far. Can someone shed some light for me.
function table auto_index()
{
$table_rows=tbl_row_count()
$column_to_process=tbl_caret_col()
while(tbl_caret_row() <= $table_rows && tbl_caret_row() > 0) {
oid_select(oid_caret(0))
copy_mark mymark
insert_tag(indexterm)
paste mymark
# insert("-")
if (goto_cell(tbl_caret_row()+1, $column_to_process) != 1)
{
break
}
}
map F12 auto_index();
Thanks
Bryon

