PROCEDURE whoami OPEN DATABASE d:\fl\foxpro\training\donnees\test_data.dbc SET DATABASE TO test_data USE parent IN 0 AGAIN ALIAS temp ? "The procedure's database is "+CURSORGETPROP('database','temp') USE IN temp SET DATABASE TO test_data USE toto IN 0 AGAIN ALIAS temp ? "The procedure's database "+CURSORGETPROP('database','temp') USE IN temp ENDPROCThis procedure belongs to the database test_getdbc.dbc, having two tables parent and toto. toto is to be found only in test_getdbc, while parent can be found in the databases test_getdbc, test_data and test_integrity, a third database that I had open before running the test.