Hi all,
When I need to close some table or cursor so I used to type this code for many times:
If used("aTable"
select "aTable"
use
endif
Now I wrote to myself this smole function that make it for me.
function close_tab(cAlias)
if used(cAlias)
select(cAlias)
use
return 1 &&Table is close
else
return 0 &&Table wasnt open
endif
endfunc
I can now type only this :
close_tab("aTable"
Now I dont have to care about some aliases.
You can used it too. It is very handfull.
When I need to close some table or cursor so I used to type this code for many times:
If used("aTable"
select "aTable"
use
endif
Now I wrote to myself this smole function that make it for me.
function close_tab(cAlias)
if used(cAlias)
select(cAlias)
use
return 1 &&Table is close
else
return 0 &&Table wasnt open
endif
endfunc
I can now type only this :
close_tab("aTable"
Now I dont have to care about some aliases.
You can used it too. It is very handfull.