Hi,
I want to know if there is a way to detect the current workspace. I need it to save the current workspace and DBF() on entering a .prg and then restore them before exit that same .prg
Ex:
thanks
I want to know if there is a way to detect the current workspace. I need it to save the current workspace and DBF() on entering a .prg and then restore them before exit that same .prg
Ex:
Code:
SELECT 1
USE aTable EXCLUSIVE
DO prg_program WITH aParameter
Code:
&& get the workspace (should return 1 here)
[COLOR=red]oldWorkspace = ???????????????[/color]
oldTable = DBF()
SELECT 2
USE another Table EXCLUSIVE
&& ... do something ...
SELECT oldWorkspace
USE oldTable
thanks