Skip to content

Commit

Permalink
unset tbl_selected_file_name when closing table
Browse files Browse the repository at this point in the history
  • Loading branch information
salhk committed Feb 20, 2024
1 parent 39de618 commit 8f32274
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tables/tables.tbs
Original file line number Diff line number Diff line change
Expand Up @@ -1126,6 +1126,7 @@ finish:
tbl_debug_print_error("tbl_close("+file_name+")",tbl_close)
#endif
end if
tbl_selected_file_name=""
end function

'------------------------------------------------------------------------------
Expand Down Expand Up @@ -2656,7 +2657,11 @@ public function tbl_get_table_name() as string
if tbl_selected_file_name="" then
tbl_get_table_name=""
else
tbl_get_table_name=tbl_info(tbl_info_index).table_name
if tbl_selected_file_name="" then
tbl_get_table_name=""
else
tbl_get_table_name=tbl_info(tbl_info_index).table_name
end if
end if
end function

Expand Down

0 comments on commit 8f32274

Please sign in to comment.