Web forum is in read-only mode. Login as active registered customer for write access
  Forum Search   New Posts New Posts

Detect Platform

 Post Reply Post Reply
Author
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Topic: Detect Platform
    Posted: 10 Jan 2019 at 9:51am
Hi,

How can I detect if the client device is not running Windows?

Thanks,

Ken
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8593
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jan 2019 at 12:26pm
You can do this with:

begin
   showmessage(window.navigator.userAgent);
end;
Back to Top
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jan 2019 at 12:32pm
Thanks but that won't compile!
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8593
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jan 2019 at 12:38pm
Is the unit web added to your uses list.
On a new form in a new app, this works out of the box here.
Back to Top
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jan 2019 at 12:44pm
Thanks, my bad!
Back to Top
Randall Ken View Drop Down
Senior Member
Senior Member
Avatar

Joined: 25 Oct 2014
Posts: 731
Post Options Post Options   Quote Randall Ken Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jan 2019 at 1:23pm
Can I safely assume that the first 3 characters of window.navigator.platformwill always be 'Win'?
Back to Top
Bruno Fierens View Drop Down
TMS Support
TMS Support
Avatar

Joined: 11 May 2010
Posts: 8593
Post Options Post Options   Quote Bruno Fierens Quote  Post ReplyReply Direct Link To This Post Posted: 10 Jan 2019 at 2:12pm
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down