dbTalk Databases Forums  

Am I hosted or local

comp.databases.filemaker comp.databases.filemaker


Discuss Am I hosted or local in the comp.databases.filemaker forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Am I hosted or local - 08-17-2010 , 09:36 AM






FMS 10 on Winblows: I want a quit a script if the file is hosted. Is
there an easy way to evaluate if the file is hosted or if it's local?
--
http://clk.ch

Reply With Quote
  #2  
Old   
Jens Rasmussen, Fimano, Denmark
 
Posts: n/a

Default Re: Am I hosted or local - 08-18-2010 , 03:22 AM






Quote:
Is
there an easy way to evaluate if the file is hosted or if it's local?
You can use the function Get ( HostName ). It will return the host
name for a hosted file, and nothing for a local file.

Reply With Quote
  #3  
Old   
Christoph Kaufmann
 
Posts: n/a

Default Re: Am I hosted or local - 08-18-2010 , 05:42 AM



Jens Rasmussen, Fimano, Denmark <fimano (AT) gmail (DOT) com> wrote:

Quote:
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.
--
http://clk.ch

Reply With Quote
  #4  
Old   
Howard Schlossberg
 
Posts: n/a

Default Re: Am I hosted or local - 08-18-2010 , 11:29 AM



On 8/18/2010 3:42 AM, Christoph Kaufmann 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.
Well, then you know it's not on the server. ;-)

Or you can use patterncount(Get(HostApplicationVersion), "Server") to
determine whether or not it is being hosted on a server.

Or you can use Get(UserCount); if the result is one, then it is not
being shared; if it is hosted, then the result will be one plus the
number of client users.

Reply With Quote
  #5  
Old   
Your Name
 
Posts: n/a

Default Re: Am I hosted or local - 08-18-2010 , 04:10 PM



"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 )

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.