You didn't leave much of a question. If you need the name of the active database then use Get(fileName)
And your question is?
There's a get function named get ( FileName ) that will return the name of the current database file. It's easy to pull up a list of all versions of the get function in FileMaker help. It can be very helpful to periodically review this list when searching for just the right function for what you need.
Retrieving data ...