"Christoph Kaufmann" <clk (AT) tele2 (DOT) ch> wrote
Quote:
Jens Rasmussen, Fimano, Denmark <fimano (AT) gmail (DOT) com> wrote:
You can use the function Get ( HostName ). It will return the host
name for a hosted file, and nothing for a local file.
I get my computer's name when using that function on file I have opened
directly from my HD. |
That would make sense - if you open a database locally on your computer,
then your computer is the Host. If it's a shared database, other users can
connect to it there - you don't need an actual server computer nor FileMaker
Server to host databases for a small number of users.
I haven't got FileMaker on this computer, but from a vague memory (and
trying to translate to newer versions of FileMaker), you can perform a test
something like:
If Get(UserName) = Get(HostName)
then running on Host
Else
running on connected Guest / user computer
End If
Helpfull Harry

)