BASIC

Author Topic: How can I get the platform ID?  (Read 2335 times)

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
How can I get the platform ID?
« on: 2012-Jan-04 »
Happy New Year to all !

I wounder if there is a way to know, programatically, if GLBasic is running on a PC or a mobile platform?
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2

Offline Crivens

  • Prof. Inline
  • *****
  • Posts: 913
    • View Profile
Re: How can I get the platform ID?
« Reply #1 on: 2012-Jan-04 »
Look in the user manual for:-
?IFDEF WIN32
?IFDEF WEBOS
?IFDEF IPHONE

There are more but that should get you on the right path.

Cheers
Current fave quote: Cause you like musicians and I like people with boobs.

Offline Ian Price

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 4152
  • On the shoulders of giants.
    • View Profile
    • My Apps
Re: How can I get the platform ID?
« Reply #2 on: 2012-Jan-04 »
Code: GLBasic [Select]
PLATFORMINFO$("DEVICE")
 
is good too.
I came. I saw. I played.

Offline michael

  • Mc. Print
  • *
  • Posts: 25
    • View Profile
Re: How can I get the platform ID?
« Reply #3 on: 2012-Jan-05 »
PLATFORMINFO$("DEVICE") is nice but has someone a good peace of code to get the ios version of the iphone ?
asking because I have some code who makes problem with ios5 !!!!

Offline aroldo

  • Mr. Polyvector
  • ***
  • Posts: 143
    • View Profile
    • APD Consulting, Inc.
Re: How can I get the platform ID?
« Reply #4 on: 2012-Jan-06 »
Thank you. :nw:
[a http://apd-games.com/][img http://apd-games.com/images/APDGames135.png][/a]
MacBook Pro OS X El Capitan
XCode Version 7
iPhone 6 running  iOS 9
iPad Mini running  iOS 7.1
Galaxy S5
Dell Latitude Windows 8 Enterprise
Palm Pre, Palm Pre2