1 Reply Latest reply: Dec 30, 2010 12:03 PM by Miguel �ngel Garc�a RSS

    How to Know Which Client is being used?

    Miguel �ngel Garc�a

      Hello!

      I need to determine which client is being used (Desktop / IE Plugin / AJAX or Mobile) to access an application. Based on that I will set a variable to show or hide certain Sheets. Is there a way to accomplish it?

      Thanks in advance!

      Miguel.

        • How to Know Which Client is being used?
          Miguel �ngel Garc�a

          Hello again.

          A Colleague just gave me the solution:

          There is a function, which I find a little mysterious because it is not in the Help area in QV Desktop, that works only in QV10. It is

          ClientPlatform()
          When using that function in QV Destop, it returns a blank string (not null). When using it via a published application in a QV10 Server, it returns:

           

          • For AJAX: browser.YOURBROWSER
          • For iPad Client: mobile.iPhone
          • For IE Plugin: A Blank String.


          Those where my few tests and solved my question. I hope it will be helpful for someone else.

          Regards,

          Miguel.